List the roles a member may hold
The roles, highest first, each with the scopes it holds and the rights no scope carries.
GET/v1/roles
The roles, highest first, each with the scopes it holds and the rights no scope carries.
A key with the members:read scope.
Request
curl "https://api.pod.mapier.ai/v1/roles" \
-H "Authorization: Bearer $POD_API_KEY"Answer
200. The roles.
{
"data": [
{
"name": "owner",
"rank": 0,
"scopes": ["sandboxes:read"],
"every_project": false,
"manages_members": false,
"description": "example"
}
],
"next_cursor": null
}| Field | Type | Always | What it is |
|---|---|---|---|
data | RoleInfo[] | Yes | |
next_cursor | string | null | Yes |
Errors
The refusals this call is known for: forbidden. Any call can also answer unauthorized, rate_limited, unavailable or internal; the error list says what each means and when to send the call again.
In the SDKs
| Client | Call |
|---|---|
| TypeScript | pod.organisations.roles() |
| Python | pod.organisations.roles() |