v50

latestOpenAPI 3.0.0Proprietaryraw.githubusercontent.com2026-06-1841147599.2 KB
Users

Update user role

Updates a user's role in the organization or profile. Requires admin role. You cannot change your own role or demote the last admin.

patch/v3/users/{userId}

Path parameters

userIdstring required

Headers

Idempotency-Keystring

Unique key to ensure idempotent request processing. Must be 1-255 alphanumeric characters, hyphens, or underscores. Responses are cached for 24 hours per key per customer.

x-profile-idstring uuid

Profile UUID to scope the request to a child profile. Only organization API keys can use this header. The profile must belong to the calling organization.

Request body

sandboxboolean

Sandbox flag - when true, the operation is simulated without side effects Useful for testing integrations without actual execution

rolestring

User role: admin, billing, or developer (required)

Example request

{
  "role": "billing",
  "sandbox": false
}

Response

User role updated successfully

successboolean

Indicates whether the request was successful