Update recording

POST /v1/Trunks/{TrunkSid}/Recording

Recording settings for a trunk

Path parameters

  • TrunkSid string Required

    The SID of the Trunk that will have its recording settings updated.

application/x-www-form-urlencoded

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, or record-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 or do-not-trim.

Responses

  • 202

    Accepted

    Hide response attributes Show response attributes object
    • mode string | null

      The recording mode for the trunk.

      Values are do-not-record, record-from-ringing, record-from-answer, record-from-ringing-dual, or record-from-answer-dual.

    • trim string | null

      The recording trim setting for the trunk.

      Values are trim-silence or do-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"
}
Response examples (202)
{
  "mode": "do-not-record",
  "trim": "trim-silence"
}