# 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 | &nbsp;
--|--
<span class="e-code">phoneNumberInstance</span> | <span class="e-code">string</span><br/>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.

<div class="highlight"><span class="filename">JSON representation</span><pre><code><span class="p">{</span>
  <span class="s2">&quot;phoneNumberInstance&quot;</span><span class="p">: </span><span class="kd">string</span><span class="p">,</span>
  <span class="s2">&quot;size&quot;</span><span class="p">: </span><span class="kd">number (</span><a href="https://developers.google.com/protocol-buffers/docs/proto3#json" target="_blank"><strong><span class="kd">int32</span></strong></a><span class="kd">)</span>
<span class="p">}</span></code></pre></div>

Fields | &nbsp;
--|--
<span class="e-code">phoneNumberInstance</span> | <span class="e-code">string</span><br/>Required. The name of the phone number instance to split. It must represent a range. Must be of the form `projects/*/phoneNumberInstances/*`.
<span class="e-code">size</span> | <span class="e-code">number (<a href="https://developers.google.com/protocol-buffers/docs/proto3#json" target="_blank">int32</a> format)</span><br/>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.

<div class="highlight"><span class="filename">JSON representation</span><pre><code><span class="p">{</span>
  <span class="s2">&quot;first&quot;</span><span class="p">: </span><span class="p">{</span>
    <span class="kd">object (</span><a href="/docs/phone-numbers/api-reference/rest/v1beta1/projects.phoneNumberInstances/overview/#resource-phonenumberinstance"><strong><span class="kd">PhoneNumberInstance</span></strong></a><span class="kd">)</span>
  <span class="p">}</span><span class="p">,</span>
  <span class="s2">&quot;second&quot;</span><span class="p">: </span><span class="p">{</span>
    <span class="kd">object (</span><a href="/docs/phone-numbers/api-reference/rest/v1beta1/projects.phoneNumberInstances/overview/#resource-phonenumberinstance"><strong><span class="kd">PhoneNumberInstance</span></strong></a><span class="kd">)</span>
  <span class="p">}</span>
<span class="p">}</span></code></pre></div>

Fields | &nbsp;
--|--
<span class="e-code">first</span> | <span class="e-code">object ([PhoneNumberInstance](/docs/phone-numbers/api-reference/rest/v1beta1/projects.phoneNumberInstances/overview/#resource-phonenumberinstance))</span><br/>The first range, representing the phone number instance that was split.
<span class="e-code">second</span> | <span class="e-code">object ([PhoneNumberInstance](/docs/phone-numbers/api-reference/rest/v1beta1/projects.phoneNumberInstances/overview/#resource-phonenumberinstance))</span><br/>The second range, representing the remaining phone numbers in the range.

