54206: Invalid Map Item data
SYNC
ERROR
Twilio returns this error when your request sends the Data parameter as null for a Sync Map Item operation that requires data. When you create a Map Item, include data in the request body as a JSON string or object that represents the item you want to store.
- Your request to create a Map Item does not include the
Dataparameter. - Your application passes
Dataasnull. - The value in
Datais not a valid serialized UTF-8 JSON object.
- Include the
datarequest body parameter when you create a Sync Map Item. - Send a valid JSON object in
Data. If you need a minimal value, send{}. - If you use a Twilio helper library, pass
dataas an initialized object instead ofnull. - Make sure the Map Item
datavalue stays within the 16 KiB limit.