Allows you to update the Alias or CNAM Lookup parameters for your long code or toll-free phone number.
Endpoint
PATCH /numbers/:idRequest Parameters
Path Parameter
-
id
string REQUIREDThe phone number to which the alias will be assigned. This number must be in 11-digit North American format. e.g. 12065551234.
Body Parameters
-
type
string REQUIREDType of the data object to be updated. This will always be number.
-
alias
stringNonunique friendly name to be assigned to the phone number.
-
cnam_lookups_enabled
booleanEnable or Disable CNAM Lookups on inbound calls.
-
messaging_enabled
booleanIf set to True, sends an external request to the Message Provision API to change the enablement state of the number after purchase. Defaults to False.
Please see Flowroute Pricing for the costs associated with enabling a number to send and receive messages.
For more information on how sending SMS/MMS Messages works, see the Flowroute articles Flowroute Messaging API Overview or Two-factor Authentication Quickstart.
If messaging_enabled is set to True and the Message Provision API is unavailable, the status code will be 207 Multi-Status. This indicates that the number purchase succeeded and the Message Provision API returned an error.
Enabling a number for SMS/MMS can be retried via the Message Provision API or Update Details for a Phone Number. -
messaging_email
booleanIf set to True in combination with messaging_enabled, causes the Message Provision API to send an email to the account contact address on file when the Message Provision job finishes.
-
messaging_callback_url
stringIf set to a valid URL in combination with messaging_enabled, causes the Message Provision API to send a notification via callback when the Provision request is finished. For information about how callbacks work, see the Callbacks page.
Response
On success, the HTTP status code in the response header is 200 OK and the response body contains the updated phone number object in JSON format. On error, the header status code is an error code and the response body contains an array of error objects.