Skip to main content

Update a 'TN'

PATCH 
/messaging/numbers/:tn

Update the specific phone number's messaging settings.

Request

Path Parameters

    tn stringrequired

    E.164 formatted phone number (without the plus sign)

Body

required

    profile_id uuid

    ID of the existing messaging profile to which the phone number should be assigned

    msg_product string

    The messaging product to which the phone number should be registered

Responses

200: Updated 'TN'

Request samples


curl -L -X PATCH 'https://sms.telnyx.com/messaging/numbers/:tn' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"profile_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"msg_product": [
"A2P",
"P2P"
]
}'

Response samples


{
"num": "+13129457420",
"user_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"profile_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"last_updated": 1521566241103171,
"country_code": "string",
"campaign_id": "string",
"num_country": "USA",
"traffic_type": "P2P",
"num_type": "long-code",
"sms": {
"enabled": true,
"domestic_two_way": true,
"international_inbound": true,
"international_outbound": true
},
"mms": {
"enabled": true,
"domestic_two_way": true,
"international_inbound": true,
"international_outbound": true
}
}