Sample - Twilio API
POST/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Siprec/{Sid}.json

Stop a SIPREC resource

Stops a SIPREC resource associated with a call. Identify the resource with either its Sid or the name supplied when it was created, and submit the required stopped status. The response contains the SIPREC resource with its updated status.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

3 parameters · 1 body field
AccountSidstringrequired
The unique identifier of the account that created the SIPREC resource. Must be a 34-character SID beginning with `AC`.
CallSidstringrequired
The unique identifier of the call associated with the SIPREC resource. Must be a 34-character SID beginning with `CA`.
Sidstringrequired
The SID or creation name of the SIPREC resource to stop.

Form-encoded status update for stopping a SIPREC resource.

Statusstringrequired
The new SIPREC status. Must be `stopped`.
Allowed:stopped

1 status code
200Returns the stopped SIPREC object, including its SID, associated account and call, name, status, last-updated timestamp, and resource URI.
sidstringoptional
The SID of the Siprec resource.
account_sidstringoptional
The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Siprec resource.
call_sidstringoptional
The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Siprec resource is associated with.
namestringoptional
The user-specified name of this Siprec, if one was given when the Siprec was created. This may be used to stop the Siprec.
statusstringoptional
The status - one of `stopped`, `in-progress`
Allowed:in-progressstopped
date_updatedstringoptional
The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
uristringoptional
The URI of the resource, relative to `https://api.twilio.com`.

Error handling

AccountSid must be a 34-character account SID beginning with AC, and CallSid must be a 34-character call SID beginning with CA. Sid must identify the SIPREC resource or its creation name, and Status must be stopped.