Python
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 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.
GET /roles
The role ID. Use GET /roles to get the list of role IDs.
"2025-09-23T17:48:07Z"
"2025-10-31T12:28:04Z"
Show child attributes
OK
Was this page helpful?