JSON API » roles » roles/default/get

Gets the default role.

Input parameters

Does not require authentication.

NameTypeDescriptionRequiredDefault value
purposeStringPurpose of role. "pseudo", "residential", or "user".No"user"

Responses

CodeDescription
200Success.

Data returned

ID of role. If no suitable role could be found, 0 is returned.

Example: With required parameters

http://enswitch.example.com/api/json/roles/default/get/

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

Change history

VersionChanges
3.13Function added.