JSON API » features » features/import

Imports users and their telephony features from a data structure. This function is deprecated, should not normally be used, and may be removed in a future version. Instead, use the individual */create functions.

Input parameters

Requires authentication and the administrator role privilege.

NameTypeDescriptionRequiredDefault value
auth_usernameStringAuthentication username.Yes
auth_passwordStringAuthentication password.Yes
dataJSONJSON encoded data structure to import.Yes
customerIntegerID of customer to import into.NoCustomer of authentication user.
purchase_numbersInteger1 to purchase any required numbers, 0 not to.No1

Responses

CodeDescription
200Success.
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.

Data returned

The number of users created.

Example: With required parameters (data not shown)

http://enswitch.example.com/api/json/features/import/?auth_username=user;auth_password=password;data=...

{ "responses":[ { "code":"200", "key":"", "message":"OK" } ], "data":{ "count":10 } }

Change history

VersionChanges
3.13Function added.