JSON API » features » features/get

Gets a feature.

Input parameters

Requires authentication and the user role privilege.

NameTypeDescriptionRequiredDefault value
auth_usernameStringAuthentication username.Yes
auth_passwordStringAuthentication password.Yes
typeStringType of feature.Yes
numberIntegerID or number of feature.Yes
customerIntegerID of customer of feature.NoCustomer of authentication user.

Responses

CodeDescription
200Success.
400Invalid customer specified.
401The authentication details provided are invalid.
402Your role does not allow this.
404The feature was not found, or you do not have permission to view it.

Data returned

The primary fields of the feature

Example: With required parameters

http://enswitch.example.com/api/json/features/get/?auth_username=user;auth_password=password;type=ivr;number=123

{ "responses":[ { "code":"200", "key":"", "message":"OK" } ], "data":{ "id":123, "name":"example", ... } }

Change history

VersionChanges
3.13Function added.