---
title: "Update organization membership by user ID and organization ID"
method: PATCH
path: "/organizations/{organization_id}/memberships/{user_id}"
tags: ["organizations"]
---

# Update organization membership by user ID and organization ID

`PATCH /organizations/{organization_id}/memberships/{user_id}`

## Request

- Base URL: `https://{tenant_name}.benchling.com/api/v2`
- URL: `https://{tenant_name}.benchling.com/api/v2/organizations/{organization_id}/memberships/{user_id}`
- Auth: HTTP bearer

Update a single organization membership

## Path parameters

- `organization_id` string, required
- `user_id` string, required

## Request body

- MembershipUpdate
  - `role` 'ADMIN' | 'MEMBER'

## Response `200`

OK

- Membership
  - `role` 'ADMIN' | 'MEMBER'
  - `user` UserSummary
    - `handle` string
    - `id` string
    - `name` string

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found

---

[API](https://skmtc.dev/benchling/apis/benchling-api-2.md) - [All operations](https://skmtc.dev/benchling/apis/benchling-api-2/llms.txt) - [OpenAPI document](https://skmtc.dev/benchling/apis/benchling-api-2/revisions/01d2fa8523cd?raw)
