RolesController_getRole
GET
/roles/{id}
const url = 'https://example.com/roles/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'GET', headers: {cookie: 'session=<session>', 'x-tenant-schema': 'example'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/roles/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'x-tenant-schema: example' \ --cookie session=<session>Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Header Parameters
Section titled “Header Parameters”x-tenant-schema
required
string
The tenant of the request.
Responses
Section titled “Responses”The role, without the fields the caller may not read.
Media typeapplication/json
object
id
string
name
string
Examplegenerated
{ "id": "example", "name": "example"}