roles
List Roles
List organization-owned roles with effective grants and current member counts.
GET
/
api
/
roles
List Roles
curl --request GET \
--url https://api.aixy-gateway.com/api/roles \
--cookie gateway_session=import requests
url = "https://api.aixy-gateway.com/api/roles"
headers = {"cookie": "gateway_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'gateway_session='}};
fetch('https://api.aixy-gateway.com/api/roles', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "<string>",
"label": "<string>",
"description": "<string>",
"permissions": [
"<string>"
],
"assignable": true,
"managed": true,
"editable": true,
"deletable": true,
"project_eligible": true,
"managed_profiles": [
"<string>"
],
"explicit_permissions": [
"<string>"
],
"version": 123,
"member_count": 123,
"object": "organization.role"
}
],
"object": "list"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}⌘I
List Roles
curl --request GET \
--url https://api.aixy-gateway.com/api/roles \
--cookie gateway_session=import requests
url = "https://api.aixy-gateway.com/api/roles"
headers = {"cookie": "gateway_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'gateway_session='}};
fetch('https://api.aixy-gateway.com/api/roles', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "<string>",
"label": "<string>",
"description": "<string>",
"permissions": [
"<string>"
],
"assignable": true,
"managed": true,
"editable": true,
"deletable": true,
"project_eligible": true,
"managed_profiles": [
"<string>"
],
"explicit_permissions": [
"<string>"
],
"version": 123,
"member_count": 123,
"object": "organization.role"
}
],
"object": "list"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}