Path parameters
-
The SID of the Trunk that will have its recording settings updated.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^TK[0-9a-fA-F]{32}$
.
Body
-
The recording mode for the trunk. Can be do-not-record (default), record-from-ringing, record-from-answer, record-from-ringing-dual, or record-from-answer-dual.
Values are
do-not-record
,record-from-ringing
,record-from-answer
,record-from-ringing-dual
, orrecord-from-answer-dual
. -
The recording trim setting for the trunk. Can be do-not-trim (default) or trim-silence.
Values are
trim-silence
ordo-not-trim
.
POST
/v1/Trunks/{TrunkSid}/Recording
curl \
--request POST 'https://trunking.twilio.com/v1/Trunks/{TrunkSid}/Recording' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'Mode=do-not-record&Trim=do-not-trim'
Request example
{"Mode"=>"do-not-record", "Trim"=>"do-not-trim"}
Response examples (202)
{
"mode": "do-not-record",
"trim": "do-not-trim"
}