Organization memberships

Update a membership's role

Changes a member's role to admin or member. The owner's role cannot be changed through this endpoint. Requires an owner or admin role.

patch/organization_memberships/{id}

Request

  • Base URL
    https://www.happyscribe.com/api/v1
  • Auth
    API key in header Authorization

Path parameters

idinteger required

ID of the membership.

Request body

role'admin' | 'member' required

Response

The updated membership.

Example response

{
  "member": {
    "id": 9001,
    "organization_id": "wks_01k6a2r9s8x7c2dvq3m5n6p4ab",
    "organization_name": "Acme Corp",
    "email": "alice@acme.com",
    "name": "Alice Smith",
    "role": "admin",
    "created_at": "2024-02-01T10:00:00.000Z",
    "updated_at": "2024-05-12T11:30:00.000Z"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.