Add x-hidden to endpoints
Update an organization membership
The admin users can use this endpoint to update the role of the members within their organization.
patch/v3/organization_memberships/{identifier}
Path parameters
identifierstring required
A random string that uniquely identify the resource.
Membership identifier.
Request body
Example request
{
"role": "admin"
}Response
Successfully updated organization membership.
Example response
{
"organization": "mEFayXdO",
"user": {
"id": 1,
"name": "Carl Johnson",
"username": "carljohnson",
"email": "carljohnson@grove.street",
"avatar": "https://affinda-api.s3.amazonaws.com/media/user-avatar.png?AWSAccessKeyId=KEY&Signature=SIG"
},
"role": "admin"
}