ResoneraDocs
Phone numbers

Update a phone number

PATCH
/phone-numbers/{number_id}

Renames a phone number or assigns it to an agent.

Requires the agents:write scope.

Authorization

apiKey
headerX-API-Key<token>

Your API key, from Settings → API access in the dashboard.

Path Parameters

number_id*string

The number's id, from GET /phone-numbers.

Formatuuid

Request Body

application/json
  1. body
friendly_name?string

Label shown in the dashboard.

agent_id?string

Agent that answers calls to this number.

Formatuuid

Response Body

Updated.

application/json
curl -X PATCH "https://example.com/phone-numbers/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{    "friendly_name": "Sales line"  }'
{  "message": "Updated",  "id": "1c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f"}