Update workspace user role
PUT/api/v1/workspaces/:workspaceId/users/:userId
Required API-key permission: USERS_UPDATE — Update member roles
Changes the role of a member. Granting OWNER or changing the role of an owner requires an owner session (or the instance master key); workspace API keys never may. The last owner cannot be demoted.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
Update workspace user role
Validation error
Missing or invalid credentials
A user cannot change their own role, or the owner role is granted/revoked without owner rights (OWNER_REQUIRED).
Workspace user not found.
The last owner cannot be demoted (LAST_OWNER).