Skip to main content

Create a list of phone number configurations

POST 
/porting_orders/phone_number_configurations

Creates a list of phone number configurations.

Request

Body

required

A list of phone number configuration parameters

    phone_number_configurations

    object[]

    Possible values: <= 20

  • Array [

  • porting_phone_number_id uuidrequired

    Identifies the porting phone number to be configured.

    user_bundle_id uuidrequired

    Identifies the user bundle to be associated with the porting phone number.

  • ]

Responses

201: Successful response

401: Unauthorized

422: Unprocessable entity. Check message field in response for details.

Request samples


curl -L 'https://api.telnyx.com/v2/porting_orders/phone_number_configurations' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"phone_number_configurations": [
{
"porting_phone_number_id": "927f4687-318c-44bc-9f2f-22a5898143a4",
"user_bundle_id": "ff901545-3e27-462a-ba9d-2b34654cab82"
}
]
}'

Response samples


{
"data": [
{
"id": "eef3340b-8903-4466-b445-89b697315a3a",
"user_bundle_id": "daa4308e-742f-4867-97f2-3073db13319a",
"porting_phone_number_id": "f1486bae-f067-460c-ad43-73a92848f902",
"record_type": "porting_phone_number_configuration",
"created_at": "2021-03-19T10:07:15.527000Z",
"updated_at": "2021-03-19T10:07:15.527000Z"
}
]
}