---
title: "Update a membership"
method: PUT
path: "/api/v1/memberships/{id}"
tags: ["Memberships"]
---

# Update a membership

`PUT /api/v1/memberships/{id}`

## Request

- Base URL: `https://session-replay.com`
- URL: `https://session-replay.com/api/v1/memberships/{id}`
- Auth: HTTP bearer

Team admins change roles; a member may update their own membership, which is how an invitation is accepted.

## Headers

- `Authorization` string

## Response `200`

membership updated

## Other responses

- `403`: neither the member nor a team admin

---

[API](https://skmtc.dev/session-replay/apis/session-replay-api.md) · [All operations](https://skmtc.dev/session-replay/apis/session-replay-api/llms.txt) · [OpenAPI document](https://skmtc.dev/session-replay/apis/session-replay-api/revisions/120e5613bf95?raw)
