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.
| Name | Type | Description | Required | Default value | 
|---|---|---|---|---|
| auth_username | String | Authentication username. | Yes | |
| auth_password | String | Authentication password. | Yes | |
| data | JSON | JSON encoded data structure to import. | Yes | |
| customer | Integer | ID of customer to import into. | No | Customer of authentication user. | 
| purchase_numbers | Integer | 1 to purchase any required numbers, 0 not to. | No | 1 | 
Responses
| Code | Description | 
|---|---|
| 200 | Success. | 
| 400 | Invalid input parameters specified. Check the key and message fields for more details. | 
| 401 | The authentication details provided are invalid. | 
| 402 | Your 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
| Version | Changes | 
|---|---|
| 3.13 | Function added. | 
