Short Codes
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.
Learn more about API scopes.
put/api/relay/rest/short_codes/{id}
Request
- Base URLhttps://{Your_Space_Name}.signalwire.com
- URLhttps://{Your_Space_Name}.signalwire.com/api/relay/rest/short_codes/{id}
- AuthHTTP basic
Path parameters
idstring uuid required
Universal Unique Identifier.
Unique ID of the short code.
Request body
Example request
{
"name": "My Short Code",
"message_request_url": "https://example.com/message",
"message_fallback_url": "https://example.com/fallback",
"message_relay_context": "my-context"
}Response
The request has succeeded.
Example response
{
"name": "My Short Code",
"number": "12345",
"number_type": "shortcode",
"country_code": "US",
"created_at": "2023-01-15T10:30:00Z",
"updated_at": "2023-01-15T10:30:00Z",
"next_billed_at": "2024-01-15T10:30:00Z",
"lease_duration": "12 months",
"message_request_url": "https://example.com/message",
"message_fallback_url": "https://example.com/fallback",
"message_relay_context": "my-context"
}Changes
No operation changes found yet. Some revisions have not been checked.