Update Custom VoIP Number
Patches a custom VoIP phone number: only the fields present in the body are updated, the others are left untouched. A provided inbound (sipConfig) or outbound (sipTrunkConfig) configuration replaces the current one as a whole; setting it to null removes it and the direction is recomputed. Removing the inbound configuration while a live inbound Pearl uses the number, or the outbound configuration while any live Pearl uses it, is rejected with a 400 and nothing is changed. The phoneNumberId is the id returned by Get Phone Numbers.
Authorizations
Specify the authorization token.
For more information, check out the Authorization Guide.
Path Parameters
Body
Data used to update a custom VoIP phone number. Only the fields present in the body are applied: a field left out keeps its current value.
A provided configuration replaces the current one as a whole, and null removes it.
The phone number, preferably in E.164 format (for example +14155550123). Max 100 characters.
The display name of the phone number (max 100 characters). Send null or an empty value to clear it: the raw number is then displayed instead.
The inbound SIP configuration. A provided configuration replaces the current one as a whole. Send null to remove the inbound configuration and release its SIP domain. This is rejected while a live inbound Pearl uses the number.
The outbound SIP trunk configuration. A provided configuration replaces the current one as a whole. Send null to remove the outbound configuration. This is rejected while a live Pearl uses the number, because outbound calls and call transfers go through it.
Response
The updated custom VoIP phone number, including the SIP domain when inbound is configured.
A phone number of the account as exposed by the API. For custom VoIP numbers it also carries the configured inbound and/or outbound SIP setup (passwords are never returned).
The unique identifier of the phone number.
The phone number, in E.164 format (a custom VoIP number is returned as it was entered).
The display name of the phone number. Falls back to the raw number when no display name is set.
Phone number direction (supported call capabilities).
- InboundOutbound: Supports both inbound and outbound calls.
- Inbound: Supports inbound calls only.
- Outbound: Supports outbound calls only.
- NotSet: Direction is not set.
1 - InboundOutbound
2 - Inbound
3 - Outbound
10 - NotSet
Indicates how the phone number is provisioned and connected to NLPearl.
- NLPearlDefault: a shared default number provided by NLPearl.
- NLPearl: a number purchased and managed for you by NLPearl.
- Twilio: a number from your own Twilio account that you connected.
- CustomVoip: a custom VoIP number you connect over SIP.
- Undefined: the type could not be determined.
1 - NLPearlDefault
2 - NLPearl
3 - Twilio
4 - CustomVoip
99 - Undefined
The inbound SIP configuration. Present only for custom VoIP numbers that have inbound configured; passwords are never returned.
The outbound SIP trunk configuration. Present only for custom VoIP numbers that have outbound configured; passwords are never returned.

