Changes the subscription to a different membership tier within the same community. This handles both upgrades (higher price) and downgrades (lower price).Documentation Index
Fetch the complete documentation index at: https://api.docs.onlydrams.app/llms.txt
Use this file to discover all available pages before exploring further.
Path Parameters
The ID of the subscription (CommunityMembership) to change
Body Parameters
The ID of the new membership tier to switch to
Returns
Returns a success message with the new tier name.Error Responses
| Status | Description |
|---|---|
| 404 | Subscription not found or doesn’t belong to user |
| 404 | Tier not found |
| 422 | Already subscribed to this tier |
| 422 | Cannot upgrade to a tier in a different community |
| 422 | Tier is not available for subscription (archived) |
| 422 | Tier is at capacity |
| 422 | Current membership must be active or trialing to upgrade |
| 422 | Failed to change tier (Stripe error) |
Notes
- Proration: When upgrading, the user is charged the prorated difference immediately
- Downgrades: Take effect at the next billing cycle
- Same Community Only: Can only change to tiers within the same community
- Active Tiers Only: Target tier must be active (not archived)
- Capacity Check: Target tier must have available spots if it has a member limit

