Organization Members
Update a member's role in an organization
Updates the role of a specific member within an organization. The user performing this action must be the 'owner' of the organization. The target member's role cannot be 'owner'.
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Request Body
application/json
organizationId*string
The ID of the organization.
memberId*string
The user ID of the member whose role is to be updated.
role*string
The new role for the member.
Value in
- "member"
- "admin"
Response Body
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/api/v1/org/members/role" \ -H "Content-Type: application/json" \ -d '{ "organizationId": "string", "memberId": "string", "role": "member" }'{ "message": "string", "member": { "userId": "string", "role": "string" }}