Changes the status of the recording to paused
A Recording resource represents the recording associated with a voice call, conference, or SIP Trunk.
Changes the status of the recording to paused, stopped, or in-progress. Note: Pass Twilio.CURRENT
instead of recording sid to reference current active recording.
Path parameters
-
AccountSid string Required
The SID of the Account that created the Recording resource to update.
-
CallSid string Required
The Call SID of the resource to update.
-
Sid string Required
The Twilio-provided string that uniquely identifies the Recording resource to update.
Body
-
PauseBehavior string
Whether to record during a pause. Can be:
skip
orsilence
and the default issilence
.skip
does not record during the pause period, whilesilence
will replace the actual audio of the call with silence during the pause period. This parameter only applies when settingstatus
is set topaused
. -
Status string Required
The new status of the recording. Can be:
stopped
,paused
,in-progress
.Values are
in-progress
,paused
,stopped
,processing
,completed
, orabsent
.
curl \
-X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json \
--user "username:password" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'PauseBehavior=string&Status=in-progress'
{
"PauseBehavior": "string",
"Status": "in-progress"
}
{
"account_sid": "string",
"api_version": "string",
"call_sid": "string",
"channels": 42,
"conference_sid": "string",
"date_created": "string",
"date_updated": "string",
"duration": "string",
"error_code": 42,
"price": 42.0,
"price_unit": "string",
"sid": "string",
"source": "DialVerb",
"start_time": "string",
"status": "in-progress",
"track": "string",
"uri": "https://example.com"
}