Updates a subscription for a user in a specific gym.
Permission | Description |
---|---|
gym_subscriptions.update | Update subscriptions for your own gyms |
gym_subscriptions.update_any | Update subscriptions for any gym |
Name | Type | Required | Description | Example |
---|---|---|---|---|
gym-id | int | Yes | ID of the gym | 123 |
subscription-id | int | Yes | ID of the subscription | 456 |
Name | Type | Required | Description | Example |
---|---|---|---|---|
expires_at | string | No | Expiration date (YYYY-MM-DD, optional) | "2025-12-31" |
available_sessions_count | int | No | Number of available sessions (optional) | 10 |
All parameters are optional; only include fields you wish to update. You can set them to null to clear their value.
{
"expires_at": "2025-12-31",
"available_sessions_count": 10
}
Returns the updated gym subscription resource.
{ /* gym subscription resource */ }
For a full schema, see Gym Subscription Resource.
Status | Description | Reference |
---|---|---|
404 | Not found (invalid gym or subscription) | |
422 | Validation error | Validation error |
401 | Unauthorized | Authentication error |
403 | Forbidden (no permission) | Permission error |