List Permissions
curl --request GET \
--url https://api.xenia.team/api/v1/mgt/permissionsimport requests
url = "https://api.xenia.team/api/v1/mgt/permissions"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.xenia.team/api/v1/mgt/permissions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.xenia.team/api/v1/mgt/permissions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.xenia.team/api/v1/mgt/permissions"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.xenia.team/api/v1/mgt/permissions")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.xenia.team/api/v1/mgt/permissions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "0b8f2c1e-6d4a-4f3b-9e2c-1a7d5b8c9e0f",
"name": "Manage Custom Roles",
"title": "CAN_MANAGE_ROLES",
"description": "Create, edit, delete custom roles",
"group": "OTHER"
},
{
"id": "5e7a9c3b-2f1d-4c8e-a6b4-3d2e1f0a9b8c",
"name": "Add/Remove Users",
"title": "CAN_MANAGE_USERS",
"description": "Add/remove users from your worskapce",
"group": "USER"
}
],
"meta": {}
}Roles
List Permissions
Lists the user permissions a custom role can be given. Pass each id in a role’s permissions array.
This route takes no authentication. Send workspace-id so permissions gated behind a workspace flag are listed for that workspace; without it they are left out.
GET
/
api
/
v1
/
mgt
/
permissions
List Permissions
curl --request GET \
--url https://api.xenia.team/api/v1/mgt/permissionsimport requests
url = "https://api.xenia.team/api/v1/mgt/permissions"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.xenia.team/api/v1/mgt/permissions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.xenia.team/api/v1/mgt/permissions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.xenia.team/api/v1/mgt/permissions"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.xenia.team/api/v1/mgt/permissions")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.xenia.team/api/v1/mgt/permissions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "0b8f2c1e-6d4a-4f3b-9e2c-1a7d5b8c9e0f",
"name": "Manage Custom Roles",
"title": "CAN_MANAGE_ROLES",
"description": "Create, edit, delete custom roles",
"group": "OTHER"
},
{
"id": "5e7a9c3b-2f1d-4c8e-a6b4-3d2e1f0a9b8c",
"name": "Add/Remove Users",
"title": "CAN_MANAGE_USERS",
"description": "Add/remove users from your worskapce",
"group": "USER"
}
],
"meta": {}
}