Skip to content

Update a number in your inventory

PUT
/v1/Accounts/{auth_id}/Vendors/PhoneNumbers/{phone_number}
curl --request PUT \
--url https://api.siprtc.io/v1/Accounts/AC000000000000000000/Vendors/PhoneNumbers/%2B15555550100 \
--header 'Authorization: Basic <credentials>' \
--header 'Content-Type: application/json' \
--data '{ "acc_id": "", "address_requirement": "none", "application_id": 0, "application_type": "ContactCenter", "bulk_number_id": "", "capability": "voice,sms", "carrier": "Example Telecom", "carrier_id": "", "country_code": "1", "country_iso": "US", "created_time": "2026-11-20T10:15:00Z", "direction": "inbound,outbound", "effective_start_date": "2026-11-20T00:00:00Z", "error": "", "expiry_date": "2027-11-20T00:00:00Z", "initial_pulse": 60, "metadata": {}, "modified_by": "jane@example.com", "mrc": 1.5, "nrc": 1, "parent_act_id": "AC000000000000000000", "phone_number": "+15555550100", "prefixed": "", "quantity": "", "range": "", "rate_center": "NEW YORK", "rps": 0.01, "site": "London office", "source": "", "source_id": "", "status": "active", "sub_pulse": 60, "tenant_id": "", "type": "local", "types": "GEO", "updated_time": "2026-11-21T09:00:00Z" }'

Vendor accounts only. Updates a number in your inventory. The body is applied over the stored record, so fields you leave out keep their values; phone_number and the vendor cannot be changed. acc_id, when sent, must be your Auth ID, a direct child’s, or empty (unassigned); a changed application_id must be an application of yours or of that account. The number must be written exactly as stored.

auth_id
required
string

Your (vendor) Auth ID.

Example

AC000000000000000000
phone_number
required
string

The number exactly as stored.

Example

+15555550100

Fields to change

Media type application/json
object
acc_id

Auth ID of the account the number is assigned to; empty for unassigned inventory. On create and update it must be your Auth ID, a direct child’s, or empty.

string

Example

address_requirement

Address or identity document needed before the number can be assigned; none when nothing is needed.

string

Example

none
application_id

ID of an application to link. It must belong to you or to the account in acc_id.

integer

Example

0
application_type

Product label such as ContactCenter or FrontDesk.

string

Example

ContactCenter
bulk_number_id

Bulk-add only; ignored by the single-number operations.

string

Example

capability

Comma-separated capabilities, e.g. voice, sms, mms, fax.

string

Example

voice,sms
carrier

Name of the carrier that provides the number.

string

Example

Example Telecom
carrier_id

Internal carrier reference.

string

Example

country_code
required

Country calling code, without the plus.

string

Example

1
country_iso
required

ISO 3166-1 alpha-2 country of the number.

string

Example

US
created_time

When the number was added (RFC 3339). Set by the service.

string

Example

2026-11-20T10:15:00Z
direction

Comma-separated call directions: inbound, outbound, blended.

string

Example

inbound,outbound
effective_start_date

When the number became usable (RFC 3339), if recorded.

string

Example

2026-11-20T00:00:00Z
error

Last provisioning error recorded for the number.

string

Example

expiry_date

When the number stops being usable (RFC 3339), if recorded.

string

Example

2027-11-20T00:00:00Z
initial_pulse
required

Initial billing pulse for inbound calls, in seconds. Must not be 0.

integer

Example

60
metadata

Free-form JSON metadata. Not stored by the single-number operations.

object
modified_by

Optional name of the person making the change, recorded in the audit log.

string

Example

jane@example.com
mrc

Monthly recurring charge to the account, in USD.

number

Example

1.5
nrc

Non-recurring (setup) charge, in USD.

number

Example

1
parent_act_id

Auth ID of the vendor that owns the inventory. Set from the path; any value you send is ignored.

string

Example

AC000000000000000000
phone_number
required

The phone number, usually E.164. It is the inventory key: a number can be in only one vendor’s inventory.

string

Example

+15555550100
prefixed

Bulk-add only; ignored by the single-number operations.

string

Example

quantity

Bulk-add only; ignored by the single-number operations.

string

Example

range

Bulk-add only; ignored by the single-number operations.

string

Example

rate_center

Rate centre or locality of the number.

string

Example

NEW YORK
rps

Per-minute rate for inbound calls, in USD.

number

Example

0.01
site

Free-form site label.

string

Example

London office
source

Where the number came from, for imported numbers.

string

Example

source_id

Reference of the import the number came from.

string

Example

status

Inventory status: active (available to assign), unavailable (assigned) or deleted. Send active when creating a number that should be available straight away.

string

Example

active
sub_pulse
required

Subsequent billing pulse for inbound calls, in seconds. Must not be 0.

integer

Example

60
tenant_id

Bulk-add only; ignored by the single-number operations.

string

Example

type
required

Number type: local, mobile or tollfree (matched case-insensitively when searching).

string

Example

local
types

Number class: GEO (geographic) or NGN (non-geographic).

string

Example

GEO
updated_time

When the number was last updated (RFC 3339).

string

Example

2026-11-21T09:00:00Z

Updated: message ‘Phone number updated’

Media type application/json
object
message

Human-readable result or error.

string
status

Success or failed.

string

Example

{
"message": "phone number not found",
"status": "failed"
}

The gateway could not resolve your company (company id is empty)

Media type application/json
object
message

Human-readable result or error.

string
status

Success or failed.

string

Example

{
"message": "phone number not found",
"status": "failed"
}

Missing or invalid credentials (returned by the API gateway)

Media type application/json
string

Example generated

example

Acc_id is not your account or a direct child, or application_id is not allowed

Media type application/json
object
message

Human-readable result or error.

string
status

Success or failed.

string

Example

{
"message": "phone number not found",
"status": "failed"
}

Not in your inventory, body not valid JSON, the save failed, or the account is not a vendor (a status/message body for the vendor check, otherwise an empty JSON object)

Media type application/json
object

Example generated

{}

The account named in acc_id could not be looked up

Media type application/json
object
message

Human-readable result or error.

string
status

Success or failed.

string

Example

{
"message": "phone number not found",
"status": "failed"
}