cURL
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" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Inbound agent id
"123-122-11"
Outbound agent id
"111-88208821"
Phone number mapped to agent successfully.