Skip to main content
PATCH
/
v1
/
channels
/
phone
/
{config_id}
/
numbers
/
{number}
Patch Phone Number
curl --request PATCH \
  --url https://{api_endpoint}/api/v1/channels/phone/{config_id}/numbers/{number} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "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
number
string
required

Body

application/json
phone_number
string
required
description
string | null
Maximum string length: 1024
agent_id
string<uuid> | null
environment_id
string<uuid> | null

Response

Successful Response