Create a custom role
Creates a custom role in the authenticated organization. Requires an API Key with the OrganizationAdmin role and a RequestId header.
Authorization
API key for /v1 requests.
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 metadata and its required Warehouse permission set.
Custom role display name. Leading and trailing whitespace is removed.
130analytics-readerOptional custom role description.
200Read-only access for the analytics team.Warehouse permissions assigned to the custom role.
1Item fields
Valid values are 1 (Warehouse View), 2 (Warehouse Management), and 3 (Public warehouse access).
1231Response
Custom role created 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