Organization Members
Update a member's role in an organization
Changed onUpdates 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'.
patch/api/v1/org/members/role
Request
- Base URLhttps://platform-backend.getalchemystai.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"organizationId": "60d0fe4f5311236168a109ca",
"memberId": "60d0fe4f5311236168a109cb",
"role": "admin"
}Response
Role updated successfully.
Example response
{
"message": "Role updated successfully",
"member": {
"userId": "60d0fe4f5311236168a109cb",
"role": "admin"
}
}Changes
- info
api operation id
updateOrgMemberRolewas added
- info
- info
endpoint added
- info