import Telnyx from 'telnyx';const client = new Telnyx({ apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted});const phoneNumberBlock = await client.portingOrders.phoneNumberBlocks.create( '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', { activation_ranges: [{ end_at: '+4930244999910', start_at: '+4930244999901' }], phone_number_range: { end_at: '+4930244999910', start_at: '+4930244999901' }, },);console.log(phoneNumberBlock.data);
Specifies the activation ranges for this porting phone number block. The activation range must be within the block range and should not overlap with other activation ranges.
import Telnyx from 'telnyx';const client = new Telnyx({ apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted});const phoneNumberBlock = await client.portingOrders.phoneNumberBlocks.create( '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', { activation_ranges: [{ end_at: '+4930244999910', start_at: '+4930244999901' }], phone_number_range: { end_at: '+4930244999910', start_at: '+4930244999901' }, },);console.log(phoneNumberBlock.data);