Authorizations
Query Parameters
Number of items to return per page
Required range:
x >= 1
Page number to return (starts at 1)
Required range:
x >= 1
Response
200 - application/vnd.api+json
Success
from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.roles.list(page_size=20, page_number=1)
while res is not None:
# Handle items
res = res.next()
{
"data": [
{
"id": "role_0L6WO1vEdPlXy",
"type": "roles",
"attributes": {
"name": "collaborator"
}
}
],
"meta": {}
}
Returns a list of all roles that can be assigned to users
from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.roles.list(page_size=20, page_number=1)
while res is not None:
# Handle items
res = res.next()
{
"data": [
{
"id": "role_0L6WO1vEdPlXy",
"type": "roles",
"attributes": {
"name": "collaborator"
}
}
],
"meta": {}
}
Number of items to return per page
x >= 1
Page number to return (starts at 1)
x >= 1
Success
Show child attributes
Was this page helpful?