Update short code
Changes how a project Short Code is identified or routes inbound messages. It can route incoming traffic to a cXML webhook, cXML Application, or Relay handler. Standard project phone numbers use Update phone number instead.
Permissions
The API token used to authenticate must have the following scope(s) enabled to make a successful request: Numbers.
Authentication
SignalWire Basic Authentication using Project ID and API Token.
The client sends HTTP requests with the Authorization header containing the word Basic followed by a space and a base64-encoded string of project_id:token. The project ID will be used as the username and the API token as the password.
Example:
Authorization: Basic base64(project_id:token)
Path parameters
Request
The URL to send message requests to when using laml_webhooks handler.
The ID of the LāML application to handle messages when using laml_application handler.
The Relay context to use when using relay_context handler.
Response
The type of number (always 'shortcode').
The ISO 3166-1 alpha-2 country code.
The lease duration of the short code (e.g., '12 months').
The URL to send message requests to when using laml_webhooks handler.
The ID of the LāML application to handle messages when using laml_application handler.
The Relay context to use when using relay_context handler.