54101: Invalid Document data
SYNC
ERROR
Twilio returned this error because the Data parameter in your Sync Document request is missing or null. For operations that create or update a Sync Document, send Data as a serialized UTF-8 JSON object.
- Your request does not include the
Dataparameter. - Your request sets
Datatonull. - Your application sends a value that is not a valid serialized JSON object.
- Your application clears or overwrites the request body before Twilio receives it.
- Include the
Dataparameter in your request when you create or update a Sync Document. - Make sure
Datacontains a valid serialized UTF-8 JSON object. - Check your client or server code to confirm the request body is populated before you send the request.
- If you build requests with an SDK or helper library, log the outgoing payload and verify that
Datais present and notnull. - Validate your JSON before sending the request to avoid malformed or empty document data.