Assign Virtual Numbers
Assign or unassign virtual numbers to/from a user.
- operation:
addto assign,removeto unassign - outbound_cvn_ids: List of virtual number IDs for outbound calling
- inbound_cvn_ids: List of virtual number IDs for inbound calling (user will be set as inbound_user)
POST /integrations/assign-virtual-numbers/
Headers
| Name | Value |
|---|---|
| Authorization | Bearer Access Token |
| Content-Type | application/json |
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| string | No | The email of Frejun User |
Payload
user_idrequiredstring
ID of the user to assign/unassign virtual numbers. Refers to the user_id retrieved via retrieve user API
outbound_cvn_idsarray of string
List of virtual number IDs for outbound calling
inbound_cvn_idsarray of string
List of virtual number IDs for inbound calling (user will be set as inbound_user)
operationrequiredstring (
add | remove)Operation to perform. add or remove
Response
{ "success": true, "message": "string"}