Update short code
Changed onUpdate the settings for a specific short code. To unbind a short code from a profile, set the messaging_profile_id to null or an empty string. To add or update tags, include the tags field as an array of strings.
Request
- Base URL: https://api.telnyx.com/v2
- URL: https://api.telnyx.com/v2/short_codes/{id}
- Auth: HTTP bearer
Path parameters
The id of the short code
Request body
Example request
{
"messaging_profile_id": "abc85f64-5717-4562-b3fc-2c9600000000",
"tags": [
"test_customer"
]
}Response
Successful response with details about a short code.
Example response
{
"data": {
"record_type": "short_code",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"short_code": "12345",
"country_code": "US",
"messaging_profile_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"tags": [
"test_customer"
],
"created_at": "2019-01-23T18:10:02.574Z",
"updated_at": "2019-01-23T18:10:02.574Z"
}
}Changes
- breaking
the response's body type changed from
objectto no type for status - breaking
the
/response's property type changed fromobjectto no type for status - breaking
the
//response's property type changed fromintegertostring, and format fromint32to no format for status
- breaking
- breaking
the response's body type changed from no type to
objectfor status - breaking
the
/response's property type changed from no type toobjectfor status - breaking
the
//response's property type changed fromstringtointeger, and format from no format toint32for status - breaking
the
///response's property format changed fromjson-pointerto no format for status
- breaking