Update short code
Update 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.
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": {
"country_code": "US",
"created_at": "2019-01-23T18:10:02.574Z",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"messaging_profile_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"record_type": "short_code",
"short_code": "12345",
"tags": [
"test_customer"
],
"updated_at": "2019-01-23T18:10:02.574Z"
}
}Changes
Changed in 2 of the 61 revisions of this API.7
- ▲
the response's body type/format changed from
object/to/for status4XXresponse-body-type-changed
- ▲
the
errors/items/response's property type/format changed fromobject/to/for status4XXresponse-property-type-changed
- ▲
the
errors/items/coderesponse's property type/format changed frominteger/int32tostring/for status4XXresponse-property-type-changed
This revision also has 64 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
the response's body type/format changed from
/toobject/for status4XXresponse-body-type-changed
- ▲
the
errors/items/response's property type/format changed from/toobject/for status4XXresponse-property-type-changed
- ▲
the
errors/items/coderesponse's property type/format changed fromstring/tointeger/int32for status4XXresponse-property-type-changed
- ▲
the
errors/items/source/pointerresponse's property type/format changed fromstring/json-pointertostring/for status4XXresponse-property-type-changed
This revision also has 41 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲