Skip to main content

Update the messaging profile of multiple phone numbers

POST 
/messaging_numbers_bulk_updates

Update the messaging profile of multiple phone numbers

Request

Body

required

    messaging_profile_id stringrequired

    Configure the messaging profile these phone numbers are assigned to:

    • Set this field to "" to unassign each number from their respective messaging profile
    • Set this field to a quoted UUID of a messaging profile to assign these numbers to that messaging profile
    numbers +E.164[]required

    The list of phone numbers to update.

Responses

200: Successful response with details about messaging bulk update phone numbers.

default: Unexpected error

Request samples


curl -L 'https://api.telnyx.com/v2/messaging_numbers_bulk_updates' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"messaging_profile_id": "00000000-0000-0000-0000-000000000000",
"numbers": [
"+18880000000",
"+18880000001",
"+18880000002"
]
}'

Response samples


{
"data": {
"record_type": "messaging_numbers_bulk_update",
"order_id": "00000000-0000-0000-0000-000000000000",
"success": [
"+18880000000",
"+18880000001",
"+18880000002"
],
"pending": [],
"failed": []
}
}