Path parameters
-
The SID of the Sync Service with the Sync Stream resource to update.
-
The SID of the Stream resource to update.
Body
-
How long, in seconds, before the Stream expires and is deleted (time-to-live).
POST
/v1/Services/{ServiceSid}/Streams/{Sid}
curl \
--request POST 'https://sync.twilio.com/v1/Services/{ServiceSid}/Streams/{Sid}' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'Ttl=3600'
Request example
{"Ttl"=>3600}
Response examples (200)
{
"sid": "TOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://sync.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Streams/TOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"links": {
"messages": "https://sync.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Streams/TOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages"
},
"created_by": "created_by",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"unique_name": "unique_name",
"date_created": "2015-07-30T20:00:00Z",
"date_expires": "2015-07-30T21:00:00Z",
"date_updated": "2015-07-30T20:00:00Z"
}