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.
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
. -
The new status of the recording. Can be:
stopped
,paused
,in-progress
.Values are
in-progress
,paused
,stopped
,processing
,completed
, orabsent
.
POST /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json
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'
Request example
{
"PauseBehavior": "string",
"Status": "in-progress"
}
Request examples
{
"PauseBehavior": "string",
"Status": "in-progress"
}
Response examples (200)
{
"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"
}
Response examples (200)
{
"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"
}