API reference/Organisations
Change a member's role
PATCH
/v1/orgs/{orgId}/members/{userId}
Nobody can give or change a role above their own, only owners change owners, and the last owner can't be demoted.
Authorization
bearer
Authorizationheader · stringrequired
Session token from POST /v1/auth/login with "transport": "bearer". Browsers use the session cookie that login sets instead.
Path
orgIdstringrequired
maxLength: 64
userIdstringrequired
maxLength: 64
Body
application/json
rolestringrequired
maxLength: 64
Responses
errors: application/problem+json
Match errors on the problem's code, which stays the same, not on its message.