---
title: "PATCH /users/{userId}/memberships/{membershipId}"
method: PATCH
path: "/users/{userId}/memberships/{membershipId}"
---

# PATCH /users/{userId}/memberships/{membershipId}

`PATCH /users/{userId}/memberships/{membershipId}`

## Request

- Base URL: `https://api.mamaearth.ca` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mamaearth.ca/users/{userId}/memberships/{membershipId}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/mamaearth/apis/mama-earth-api/docs/users/:userId/memberships/:membershipId/patch.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `userId` integer, required
- `membershipId` integer, required

## Request body

- object
  - `autoRenew` boolean, nullable
  - `endDate` string, date, nullable

## Response `200`

modifyMembership 200 response

---

[API](https://skmtc.dev/mamaearth/apis/mama-earth-api.md) - [All operations](https://skmtc.dev/mamaearth/apis/mama-earth-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mamaearth/apis/mama-earth-api/revisions/2693a8db8dbd?raw)
