Updates a MediaProcessor resource identified by a SID
A MediaProcessor resource provides the ability to capture content from a web application with a Twilio Media Extension to create a livestream.
Updates a MediaProcessor resource identified by a SID.
Path parameters
-
The SID of the MediaProcessor resource to update.
POST /v1/MediaProcessors/{Sid}
curl \
-X POST https://media.twilio.com/v1/MediaProcessors/{Sid} \
--user "username:password" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'Status=ended'
Request example
{
"Status": "ended"
}
Request examples
{
"Status": "ended"
}
Response examples (200)
{
"account_sid": "string",
"date_created": "2023-05-04T09:42:00+00:00",
"date_updated": "2023-05-04T09:42:00+00:00",
"ended_reason": "string",
"extension": "string",
"extension_context": "string",
"max_duration": 42,
"sid": "string",
"status": "failed",
"status_callback": "https://example.com",
"status_callback_method": "HEAD",
"url": "https://example.com"
}
Response examples (200)
{
"account_sid": "string",
"date_created": "2024-05-04T09:42:00+00:00",
"date_updated": "2024-05-04T09:42:00+00:00",
"ended_reason": "string",
"extension": "string",
"extension_context": "string",
"max_duration": 42,
"sid": "string",
"status": "failed",
"status_callback": "https://example.com",
"status_callback_method": "HEAD",
"url": "https://example.com"
}