Update role

PUT/v2/rbac/roles/{id}

Updates an existing role's configuration including its permissions and member assignments.

Parameters #

PropertyTypeLocationDescription
idstringRequiredpathUnique identifier of the role to update

Body #

Defines a role and its associated permissions within the system

application/json
PropertyTypeDescription
datasetCapabilitiesobjectDefines the available permissions for dataset operations
descriptionstringDetailed description of the role's purpose and scope
membersstring[]List of user IDs that are assigned to this role
namestringRequiredUnique name identifier for the role
orgCapabilitiesobjectDefines organization-wide permissions and capabilities
annotationsstring[]Controls the management of annotations across the organization
apiTokensstring[]Controls the management of API tokens for authentication
auditLogstring[]Controls access to organization audit logs
billingstring[]Controls access to billing information and settings
dashboardsstring[]Controls the management of organization dashboards
datasetsstring[]Controls the management of organization datasets
endpointsstring[]Controls the management of API endpoints
flowsstring[]Controls the management of data flows and pipelines
integrationsstring[]Controls the management of third-party integrations
monitorsstring[]Controls the management of monitoring
notifiersstring[]Controls the management of notification settings
rbacstring[]Controls access to role-based access control settings
sharedAccessKeysstring[]Controls the management of shared access keys
usersstring[]Controls user management within the organization
viewsstring[]Controls the management of data views
viewCapabilitiesobjectDefines the available permissions for view operations

Request #

curl -X PUT 'https://api.axiom.co/v2/rbac/roles/ID' \
  -H 'Authorization: Bearer API_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"datasetCapabilities":{},"description":"string","members":["string"],"name":"string","orgCapabilities":{"annotations":["create"],"apiTokens":["create"],"auditLog":["read"],"billing":["read"],"dashboards":["create"],"datasets":["create"],"endpoints":["create"],"flows":["create"],"integrations":["create"],"monitors":["create"],"notifiers":["create"],"rbac":["create"],"sharedAccessKeys":["read"],"users":["create"],"views":["create"]},"viewCapabilities":{}}'
Try itRun this request against your Axiom organization

Credentials stay in this browser tab and are only sent to Axiom when you run the request.

Response #

200The role was successfully updated
application/json