Assign an agent
Phone numbers
Assign an agent
Chooses the agent that answers calls to this number. The agent has to be published (not a draft) and not archived. Send "agent_id": "" to unassign.
Optional webhook_url (https) is where events for calls coming in on this number are sent; "" clears it.
version is the number’s current version: 1 straight after import or rental. You can change the agent while calls are on; you can’t while they are being turned on.
PATCH
Assign an agent
Authorizations
Your workspace secret key, sk_live_ followed by 32 hex characters. Create one in the console under Developers.
Path Parameters
The phone number's id (phn_…).
Response
Assigned