Skip to main content
DELETE
/
porting_orders
/
{porting_order_id}
/
phone_number_blocks
/
{id}
JavaScript
import Telnyx from 'telnyx';

const client = new Telnyx({
  apiKey: 'My API Key',
});

const phoneNumberBlock = await client.portingOrders.phoneNumberBlocks.delete(
  '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
  { porting_order_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e' },
);

console.log(phoneNumberBlock.data);
{
  "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"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

porting_order_id
string<uuid>
required

Identifies the Porting Order associated with the phone number block

id
string<uuid>
required

Identifies the phone number block to be deleted

Response

Successful response

data
object