Update Plan (v1)
Update a subscription plan.
Method & Path
PATCH /v1/admin/plans/:planId
Description
Updates an existing subscription plan. At least one field must be provided.
Authentication
Required: Admin authentication with plans.manage permission.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
planId | string | Yes | The plan ID |
Request Body
{
"name": "Updated Plan Name",
"price": 149.99
}
Response 200 OK
{
"plan": {
"id": "507f1f77bcf86cd799439011",
"name": "Updated Plan Name",
"price": 149.99
}
}
Common Errors
- 401 Unauthorized: Missing or invalid admin authentication token
- 403 Forbidden: Insufficient permissions
- 404 Not Found: Plan not found
- 400 Bad Request: Invalid request body
- 500 Internal Server Error: Server error