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

Stop a SIPREC resource

Stops a SIPREC resource associated with a call. Set Status to stopped, and identify the resource by its SID or the name used when it was created.

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

3 parameters · 1 body field
AccountSidstringrequired
The account SID, in the 34-character format `AC` followed by 32 hexadecimal characters.
CallSidstringrequired
The call SID associated with the SIPREC resource, in the 34-character format `CA` followed by 32 hexadecimal characters.
Sidstringrequired
The SIPREC resource SID or the name used when the resource was created.

Form-encoded settings for stopping the SIPREC resource.

Statusstringrequired
The resource status to set; the only allowed value is `stopped`.
Allowed:stopped

1 status code
200Returns the updated SIPREC resource, including its SIDs, name, status, last-updated timestamp, and 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

Status is required and must be stopped. The AccountSid path parameter must match the 34-character AC SID format, the CallSid path parameter must match the 34-character CA SID format, and the Sid path parameter must identify the resource by its SID or creation name.