v1

latestOpenAPI 3.0.3MIT2026-08-04143307364.8 KB
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

role'admin' | 'member'

Example request

{
  "role": "admin"
}

Response

Successfully updated organization membership.

identifierstring required

A random string that uniquely identify the resource.

organizationstring required

Uniquely identify an organization.

role'admin' | 'member' required

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"
}