JSON API » numbers » numbers/system/update

Updates the system fields of an existing number.

Input parameters

Requires authentication and the system role privilege.

NameTypeDescriptionRequiredDefault value
auth_usernameStringAuthentication username.Yes
auth_passwordStringAuthentication password.Yes
numberStringNumber to update.Yes
aliasStringAlias.NoCurrent value.
classIntegerID of number class.NoCurrent value.
customerIntegerID of customer owning the number.NoCurrent value.
regionIntegerID of region. 0 for none.NoCurrent value.
shortcutInteger1 to route calls to the number internally, 0 not to.NoCurrent value.
validationInteger1 to validate input then return, 0 for full action.No0

If the customer is changed, no billing is done. If billing is required, use numbers/purchase or numbers/delete instead.

Responses

CodeDescription
201Input passed validation. Only returned if validation=1.
204Success.
400Invalid input parameters specified. Check the key and message fields for more details.
401The authentication details provided are invalid.
402Your role does not allow this.
404The number does not exist, or you do not have permission to update it.

Data returned

No data is returned.

Example: Changing the number class

http://enswitch.example.com/api/json/numbers/system/update/?auth_username=user;auth_password=password;number=2125551234;class=123

{ "responses":[ { "code":"204", "key":"", "message":"OK" } ] }

Change history

VersionChanges
3.13Function added.