Update a custom role
Updates a custom role in the authenticated organization. Requires an API Key with the OrganizationAdmin role and a RequestId header.
A non-blank roleName, a description, or a non-empty permissions array is required. Only supplied fields are updated. To clear the description, provide an empty or whitespace-only string. A non-empty permissions array replaces all custom role permissions. Updating a built-in role returns 400 InvalidParameter.
Authorization
API key for /v1 requests.
Path parameters
Headers
Idempotency key for write requests.
Use a globally unique UUID or similar token for each logical write request.
Never reuse a RequestId across different operations or payloads.
You can safely retry the same RequestId only when the method, path, path parameters, query string, and request body are identical.
18f6b0c2e-6a9a-4f2e-9c4c-0a1f9a2b7d31Request body
Custom role fields to update. A non-blank roleName, a description, or a non-empty permissions array is required. An empty or whitespace-only description clears the existing value. A non-empty permissions array replaces all custom role permissions.
Updated custom role display name. Leading and trailing whitespace is removed.
130analytics-viewerUpdated custom role description. Provide an empty or whitespace-only string to clear the existing description.
200Read-only access for analytics users.Replacement Warehouse permission set for the custom role.
1Item fields
Valid values are 1 (Warehouse View), 2 (Warehouse Management), and 3 (Public warehouse access).
1231Response
Custom role updated successfully.
Child fields
Warehouse permissions effective for the role.
Item fields
Stored permission identifier for custom roles, when available.
org-123_wh-123_1Valid values are 1 (Warehouse View), 2 (Warehouse Management), and 3 (Public warehouse access).
1231Creation timestamp for a custom role. Omitted for built-in roles.
2026-08-14T08:30:00ZLast updated timestamp for a custom role. Omitted for built-in roles.
2026-08-14T08:30:00Z