JSON API » roles » roles/get

Gets the fields of a role.

Input parameters

Does not require authentication.

NameTypeDescriptionRequiredDefault value
idIntegerID of role to get.Yes

Responses

CodeDescription
200Success.
404The role does not exist.

Data returned

Fields of role.

Example: With required parameters

http://enswitch.example.com/api/json/roles/get/?id=123

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

Change history

VersionChanges
3.13Function added.