Retrieves a list of subscription plans for a specific gym.
No authentication required.
| Permission | Description |
|---|---|
gyms.view_all | Required to view plans for a gym that is inactive or whose license is not approved, or to view inactive plans |
A gym's public sub-resources are only served while the gym is active and its license is approved. The gym owner and holders of
gyms.view_allare exempt; everyone else gets a 403. See Gym List.
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| gym-id | int | Yes | ID of the gym | 123 |
GET /api/v1/gyms/123/plans
Authorization: Bearer {token}
Returns a list of gym plan resources.
{
"data": [ { /* gym plan resource */ }, ... ]
}
For a full schema, see Gym Plan Resource.
| Status | Description | Reference |
|---|---|---|
| 401 | Unauthorized | Authentication error |
| 403 | Forbidden (no permission) | Permission error |
| 404 | Not found | Not-found error |