---
title: "Update Group Membership"
method: PATCH
path: "/cloud/v2/groups/{group_id}/memberships/{membership_id}"
tags: ["Groups"]
---

# Update Group Membership

`PATCH /cloud/v2/groups/{group_id}/memberships/{membership_id}`

**Deprecated.** Use AssignGroupRole and UnassignGroupRole instead.
Updates the group membership for a particular group member. This action
requires the requester to be able to manage lower ranked members. Guest or
Owner ranks cannot be assigned, and a requester cannot change their own
rank.

## Path parameters

- `group_id` string, required
- `membership_id` string, required

## Request body

- GroupMembership — A membership to a group. A user ID can be used in place of a membership ID.
  - `path` string — The resource path of the group membership. Format: `groups/{group_id}/memberships/{group_membership_id}`
  - `createTime` string, date-time — The timestamp when the group membership was created.
  - `updateTime` string, date-time — The timestamp when the group membership was last updated.
  - `user` string — The resource path of a member of the group.
  - `role` string — The resource path of the member's highest-ranked role. When the member holds multiple roles, this reflects only the highest-ranked one. Prefer using the `roles` field, which always contains the complete set of assigned roles.
  - `roles` string[] — The resource paths of all roles assigned to the group member. This is the recommended field for reading a member's roles, as it always contains the complete set of roles held by the member.

## Response `200`

OK

- GroupMembership — A membership to a group. A user ID can be used in place of a membership ID.
  - `path` string — The resource path of the group membership. Format: `groups/{group_id}/memberships/{group_membership_id}`
  - `createTime` string, date-time — The timestamp when the group membership was created.
  - `updateTime` string, date-time — The timestamp when the group membership was last updated.
  - `user` string — The resource path of a member of the group.
  - `role` string — The resource path of the member's highest-ranked role. When the member holds multiple roles, this reflects only the highest-ranked one. Prefer using the `roles` field, which always contains the complete set of assigned roles.
  - `roles` string[] — The resource paths of all roles assigned to the group member. This is the recommended field for reading a member's roles, as it always contains the complete set of roles held by the member.

---

[API](https://skmtc.dev/roblox/apis/roblox-api.md) · [All operations](https://skmtc.dev/roblox/apis/roblox-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/roblox/roblox-api/revisions/35c075fdde69/schema)
