Skip to main content

Delete a phone number block

DELETE 
/porting_orders/:porting_order_id/phone_number_blocks/:id

Deletes a phone number block.

Request

Path Parameters

    porting_order_id uuidrequired

    Identifies the Porting Order associated with the phone number block

    id uuidrequired

    Identifies the phone number block to be deleted

Responses

200: Successful response

404: Not found

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

Request samples


curl -L -X DELETE 'https://api.telnyx.com/v2/porting_orders/:porting_order_id/phone_number_blocks/:id' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'

Response samples


{
"data": {
"id": "f24151b6-3389-41d3-8747-7dd8c681e5e2",
"country_code": "DE",
"phone_number_type": "local",
"phone_number_range": {
"start_at": "+4930244999901",
"end_at": "+4930244999910"
},
"activation_ranges": [
{
"start_at": "+4930244999901",
"end_at": "+4930244999910"
}
],
"record_type": "porting_phone_number_block",
"created_at": "2021-03-19T10:07:15.527Z",
"updated_at": "2021-03-19T10:07:15.527Z"
}
}