Skip to main content
Update Phone Config
curl --request PATCH \
  --url https://{api_endpoint}/api/v1/channels/phone/{config_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "service_provider": "sip_trunk",
  "security": {
    "api_key": "<string>",
    "client_secret": "<string>",
    "secure_trunking": false,
    "authentication": false,
    "username": "<string>",
    "password": "<string>",
    "password_is_set": false
  },
  "attached_environments": [
    {
      "agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "environment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "agent_name": "<string>",
      "environment_name": "<string>"
    }
  ],
  "custom_invite_headers": [
    {
      "name": "<string>"
    }
  ],
  "put_caller_on_hold_on_transfer": true,
  "send_provisional_response": true,
  "error_handling": {
    "fallback_sip_uri": "<string>",
    "transfer_failure": {},
    "call_failure": {}
  },
  "phone_numbers": [
    {
      "phone_number": "<string>",
      "description": "<string>",
      "agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "environment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    }
  ]
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

config_id
string<uuid>
required

Query Parameters

append
boolean
default:false

Body

application/json
name
string | null
Maximum string length: 64
description
string | null
Maximum string length: 1024
service_provider
enum<string> | null
Available options:
sip_trunk,
genesys_audio_connector
security
PhoneSecurity · object
attached_environments
CreateAttachedAgentConfig · object[] | null
custom_invite_headers
CustomInviteHeader · object[] | null
put_caller_on_hold_on_transfer
boolean | null
send_provisional_response
boolean | null
error_handling
PhoneErrorHandling · object
phone_numbers
CreatePhoneNumberConfig · object[] | null

Response

Successful Response