Skip to content

Method: projects.phoneNumberInstances.splitRange

Splits a phone number range into two ranges.

To split a range, you specify how many numbers to keep in this range. These numbers are taken from the start of the range. The remaining numbers will be moved into a new range.

For example, if you have a range +61255501100-99 and you split it with a size of 20, then: - the original range will be modified to +61255501100-19 (size 20) - a new range will be created with +61255501120-99 (size 80)

The caller must have numbering.phoneNumberInstances.splitRange permission on the project.

HTTP request

POST https://numbering.api.enfonica.com/v1beta1/{phone_number_instance}:splitRange

Path parameters

Parameters  
phoneNumberInstance string
The name of the phone number instance to split. It must represent a range. Must be of the form projects/*/phoneNumberInstances/*.

Request body

The SplitRange request message.

JSON representation
{
  "phoneNumberInstance": string,
  "size": number (int32)
}
Fields  
phoneNumberInstance string
Required. The name of the phone number instance to split. It must represent a range. Must be of the form projects/*/phoneNumberInstances/*.
size number (int32 format)
Required. The quantity of numbers to keep in the range of the specified phone number instance. The remaining numbers will be moved to a new range.

Response body

The SplitRange response message.

JSON representation
{
  "first": {
    object (PhoneNumberInstance)
  },
  "second": {
    object (PhoneNumberInstance)
  }
}
Fields  
first object (PhoneNumberInstance)
The first range, representing the phone number instance that was split.
second object (PhoneNumberInstance)
The second range, representing the remaining phone numbers in the range.