Get role
import requests
url = "https://{FUSION HOST}/api/roles/{id}"
response = requests.get(url)
print(response.text){
"id": "e4ac80c6-8905-4eaf-9670-b541b41f732e",
"name": "test-role",
"createdAt": "2025-10-31T18:12:59Z",
"desc": "For testing only",
"permissions": [
{
"methods": [
"OPTIONS",
"GET"
],
"path": "/"
}
],
"uiPermissions": []
}Get role
Get a role’s details
GET
/
roles
/
{id}
Get role
import requests
url = "https://{FUSION HOST}/api/roles/{id}"
response = requests.get(url)
print(response.text){
"id": "e4ac80c6-8905-4eaf-9670-b541b41f732e",
"name": "test-role",
"createdAt": "2025-10-31T18:12:59Z",
"desc": "For testing only",
"permissions": [
{
"methods": [
"OPTIONS",
"GET"
],
"path": "/"
}
],
"uiPermissions": []
}Path Parameters
The role ID. Note that the role ID is different than the role name. Use GET /roles to get the list of role IDs.
Was this page helpful?
⌘I