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.

    Minimum length is 34, maximum length is 34. Format should match the following pattern: ^TK[0-9a-fA-F]{32}$.

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 application/json

    Accepted

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string

      Specify the origin(s) allowed to access the resource

    • Access-Control-Allow-Methods string

      Specify the HTTP methods allowed when accessing the resource

    • Access-Control-Allow-Headers string

      Specify the headers allowed when accessing the resource

    • Access-Control-Allow-Credentials boolean

      Indicates whether the browser should include credentials

    • Access-Control-Expose-Headers string

      Headers exposed to the client

    Hide response attributes Show response attributes object
    • 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.

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"
}