Update a member's role
Changes a team member’s role. Only owner and admin can update roles. Cannot set the role to owner (use the transfer endpoint instead). Cannot change your own role.
Documentation Index
Fetch the complete documentation index at: https://docs.cyberun.cloud/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
User session JWT (Bearer ). Must be paired with the X-Team-ID
request header on team-scoped endpoints so the server knows which
team's resources to operate on.
Headers
UUID of the team to scope the request to. Used by dual-auth endpoints (runtime + scoped management):
- JWT callers MUST send it — a user may belong to multiple teams and the runtime cannot otherwise know which one to operate on. Missing header → 400.
- Credential callers (
sk-,dk-) can omit it because the team is derived from the credential row itself. Any value sent is ignored.
"019abc12-4567-7890-abcd-ef1234567891"
Path Parameters
UUID of the user.
"019abc12-3456-7890-abcd-ef1234567890"
Body
New role to assign. Cannot set owner (use the transfer endpoint instead).
admin, member, viewer "member"
Response
Role updated
Always true when the action completed successfully.
true
