BindPhoneNumberToApplication
Bind the phone number to the application or unbind the phone number from the application. You should specify the application_id or application_name if you specify the rule_name.
Allowed roles: Owner, Admin, Developer.
Example request: Bind the phone 1 to the application 1.
Authentication
Voximplant Management API uses signed JWT tokens generated from your service-account private key. Pass the token in the Authorization header as a Bearer value:
Authorization: Bearer $VOXIMPLANT_TOKEN
See Authorization for ready-to-copy snippets in bash, Python, Node.js and Go that turn your credentials.json into a token.
Query parameters
The phone ID list separated by semicolons (;). Use the 'all' value to select all phone ids. Required unless phone_number is provided.
The phone number list separated by semicolons (;). Required unless phone_id is provided.
The application ID. Required unless application_name is provided.
The application name. Required unless application_id is provided.
The rule name that can be used instead of rule_id
Whether to bind or unbind (set true or false respectively)