Update a role
import requests
url = "https://{FUSION HOST}/api/roles/{id}"
payload = { "name": "test-role" }
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"id": "9902679c-7f7e-4a66-8c28-b178a07afc46",
"name": "test-role",
"createdAt": "2025-10-31T18:12:59Z",
"updatedAt": "2025-10-31T18:44:34Z",
"permissions": [
{
"methods": [
"OPTIONS",
"GET",
"PUT"
],
"path": "/"
}
],
"uiPermissions": [
"string",
"string"
]
}Update a role
Update the configuration of the role with the specified ID. Note that the role ID is different than the role name. Use GET /roles to get the list of role IDs.
PUT
/
roles
/
{id}
Update a role
import requests
url = "https://{FUSION HOST}/api/roles/{id}"
payload = { "name": "test-role" }
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"id": "9902679c-7f7e-4a66-8c28-b178a07afc46",
"name": "test-role",
"createdAt": "2025-10-31T18:12:59Z",
"updatedAt": "2025-10-31T18:44:34Z",
"permissions": [
{
"methods": [
"OPTIONS",
"GET",
"PUT"
],
"path": "/"
}
],
"uiPermissions": [
"string",
"string"
]
}Path Parameters
The role ID. Use GET /roles to get the list of role IDs.
Body
application/json
Response
OK
Was this page helpful?
⌘I