Path parameters
-
The SID of the Trunk that will have its recording settings updated.
Body
-
Mode string
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
. -
Trim string
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 \
-X POST https://trunking.twilio.com/v1/Trunks/{TrunkSid}/Recording \
--user "username:password" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'Mode=do-not-record&Trim=trim-silence'
Request example
{
"Mode": "do-not-record",
"Trim": "trim-silence"
}
Request examples
{
"Mode": "do-not-record",
"Trim": "trim-silence"
}
Response examples (202)
{
"mode": "do-not-record",
"trim": "trim-silence"
}
Response examples (202)
{
"mode": "do-not-record",
"trim": "trim-silence"
}