Stop a Stream using either the SID of the Stream resource or the `name` used when creating the resource
The Stream resource allows you to create and stop uni-directional Media Streams
Stop a Stream using either the SID of the Stream resource or the name
used when creating the resource
Path parameters
-
The SID of the Account that created this Stream resource.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^AC[0-9a-fA-F]{32}$
. -
The SID of the Call the Stream resource is associated with.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^CA[0-9a-fA-F]{32}$
. -
The SID or the
name
of the Stream resource to be stopped
POST
/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Streams/{Sid}.json
curl \
--request POST 'https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Streams/{Sid}.json' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'Status=stopped'
Request examples
Update by sid
{"Status"=>"stopped"}
{"Status"=>"stopped"}
Response examples (200)
Update by sid
{
"sid": "MZaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Streams/MZaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
"name": null,
"status": "stopped",
"call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_updated": "Thu, 30 Jul 2015 20:00:00 +0000"
}
{
"sid": "MZaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Streams/MZaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
"name": "myStream",
"status": "stopped",
"call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_updated": "Thu, 30 Jul 2015 20:00:00 +0000"
}