Calls

Update a call in progress

This method is used to manage ongoing, connected calls. This method uses SVAML in the request body to perform various tasks related to the call. For more information about SVAML, see the Callback API documentation.

This method can only be used for calls that originate from or terminate to PSTN or SIP networks.

patch/calling/v1/calls/id/{callId}

Request

  • Base URL
    https://calling.api.sinch.com
  • URL
    https://calling.api.sinch.com/calling/v1/calls/id/{callId}
  • Auth
    • HTTP basic
    • or API key in header Authorization

Request body

Example request

{
  "instructions": [
    {
      "ids": [
        "#ssml[Thank you for calling Sinch!]"
      ],
      "locale": "en-US"
    }
  ],
  "action": {
    "locale": "en-US",
    "introPrompt": "#tts[Welcome]",
    "holdPrompt": "#tts[Thank you for your patience, your call is very important to us.]",
    "maxDuration": 180
  }
}

Response

A success response, or an Error.

Changes

No recorded changes to this operation across all 2 revisions of this API.