JSON API » features » features/search

Searches for telephony features in the given customer and its sub-customers recursively.

Input parameters

Requires authentication and the user role privilege.

NameTypeDescriptionRequiredDefault value
auth_usernameStringAuthentication username.Yes
auth_passwordStringAuthentication password.Yes
typeStringType of feature to search for. "access", "callerids" (numbers with purpose set to 'Callerid only'), "cards", "customers", "mailboxes", "numbers", "people", "unumbers" (unassigned numbers), or "vouchers".Yes
fieldStringField to search. "account", "affiliate", "card", "description", "forename", "hardware_address", "mailbox", "name", "role", "serial", "snumber", "surname", "tax_number", or "username".Yes
searchStringThe value to search for.Yes
customerIntegerID of customer to search, including sub-customers recursively.NoCustomer of authentication user.
matchStringWhat to match in the search. "exact", "start", "end", or "contains".No"exact"

Responses

CodeDescription
200Success.
400Invalid customer specified.
401The authentication details provided are invalid.
402Your role does not allow this.

Data returned

A data structure containing the results found. The specific structure depends on the type of feature searched for.

Example: With required parameters

http://enswitch.example.com/api/json/features/search/?auth_username=user;auth_password=password;type=customers;field=name;search=example

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

Change history

VersionChanges
3.14type input parameter changed to allow a value of "callerids".
3.13Function added.