Objective
This article helps you change the JSON payload stored in a Sync Document, and optionally change when the Document expires. Every subscribed client receives the new payload in real time.
Product
Twilio Console
Environment
Twilio Console
User Account Permission/Role(s) Required
Your user role must allow reading Twilio Sync Services to open the Document, and updating them to save your change.
Procedure
- In the Twilio Console, select Builder tools in the left sidebar.
- Select Sync, then Services.
- In the Name column, select the Service that holds the Document.
- Select the Documents tab.
- In the Unique name / SID column, select the Document you want to change.
- Select Edit data. The Update Sync Document panel opens with the current payload already filled in.
- Edit the JSON in Data.
- In TTL (seconds), optionally enter a new expiry in seconds. Leave the field blank to keep the current expiry.
- Select Save changes. The console confirms with "Sync Document updated." and the details page shows the new payload.
Additional Information
- Data must be valid JSON and can be up to 16 KiB. Invalid JSON is reported in the form and the save is blocked.
- Leave TTL (seconds) blank to leave the stored expiry untouched. Entering 0 means the Document never expires, which clears any expiry it had.
- A Document's unique name cannot be changed after it is created, so the edit form does not offer it.
- The save is conditional on the revision shown when the page loaded. If someone else changed the Document in the meantime, your save is rejected rather than silently overwriting their change reload the page and reapply your edit.
This content was generated by AI and reviewed, edited, and verified by a human.