Skip to main content
PATCH
/
api
/
v1
/
phone-numbers
/
{phoneNumberId}
Map a phone number to an agent
curl --request PATCH \
  --url https://dev-chat-engine.actualize.ae/api/v1/phone-numbers/{phoneNumberId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "inBoundAgentId": "123-122-11",
  "outBoundAgentId": "111-88208821"
}
'
{
  "inBoundAgentId": "123-122-11",
  "outBoundAgentId": "111-88208821"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

phoneNumberId
string
required

Body

application/json
inBoundAgentId
string

Inbound agent id

Example:

"123-122-11"

outBoundAgentId
string

Outbound agent id

Example:

"111-88208821"

Response

200 - application/json

Phone number mapped to agent successfully.

inBoundAgentId
string

Inbound agent id

Example:

"123-122-11"

outBoundAgentId
string

Outbound agent id

Example:

"111-88208821"