Memberships
Update membership
Update a membership's metadata or other mutable properties.
Required permissions:
- member:manage
- member:email:read
- member:basic:read
patch/memberships/{id}
Path parameters
idstring required
Example:mem_xxxxxxxxxxxxxx
The unique identifier of the membership to update.
Request body
Response
A successful response
Example response
{
"canceled_at": "2023-12-01T05:00:00.401Z",
"cancellation_reason": "I found a better alternative.",
"company": {
"id": "biz_xxxxxxxxxxxxxx",
"title": "Pickaxe"
},
"created_at": "2023-12-01T05:00:00.401Z",
"custom_field_responses": [
{
"id": "cfrp_xxxxxxxxxxxxx"
}
],
"id": "mem_xxxxxxxxxxxxxx",
"joined_at": "2023-12-01T05:00:00.401Z",
"license_key": "A1B2C3-D4E5F6-G7H8I9",
"manage_url": "https://whop.com/billing/manage/mem_abc123",
"member": {
"id": "mber_xxxxxxxxxxxxx"
},
"plan": {
"id": "plan_xxxxxxxxxxxxx"
},
"product": {
"id": "prod_xxxxxxxxxxxxx",
"title": "Pickaxe Analytics"
},
"promo_code": {
"id": "promo_xxxxxxxxxxxx"
},
"renewal_period_end": "2023-12-01T05:00:00.401Z",
"renewal_period_start": "2023-12-01T05:00:00.401Z",
"updated_at": "2023-12-01T05:00:00.401Z",
"user": {
"email": "john.doe@example.com",
"id": "user_xxxxxxxxxxxxx",
"name": "John Doe",
"username": "johndoe42"
}
}