Retrieves a list of equipment assigned to a specific gym.
No authentication required.
| Permission | Description |
|---|---|
gyms.view_all | Required to view equipment for a gym that is inactive or whose license is not approved |
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/equipment
Authorization: Bearer {token}
Returns a list of gym equipment resources.
{
"data": [ { /* gym equipment resource */ }, ... ]
}
For a full schema, see Gym Equipment Resource.
| Status | Description | Reference |
|---|---|---|
| 401 | Unauthorized | Authentication error |
| 403 | Forbidden (no permission) | Permission error |
| 404 | Not found | Not-found error |