RolesController_getRoles
GET
/roles
const url = 'https://example.com/roles';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 \ --header 'x-tenant-schema: example' \ --cookie session=<session>Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”x-tenant-schema
required
string
The tenant of the request.
Responses
Section titled “Responses”The roles the caller may read.
Media typeapplication/json
object
roles
required
Array<object>
object
id
string
name
string
Examplegenerated
{ "roles": [ { "id": "example", "name": "example" } ]}