در حال بارگذاری…
Creates a new equipment entry for a gym.
| Permission | Description |
|---|---|
gym_equipment.create | Create equipment for your own gyms |
gym_equipment.create_any | Create equipment for any gym |
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| gym-id | int | Yes | ID of the gym | 123 |
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| equipment_id | int | Yes | ID of the equipment | 10 |
| count | int | Yes | Number of this equipment in the gym | 5 |
| brand_id | int | No | Brand ID (optional) | 2 |
| description | string | No | Description (optional) | "..." |
{
"equipment_id": 10,
"count": 5,
"brand_id": 2,
"description": "Brand new treadmill"
}
Returns the created gym equipment resource.
{ /* gym equipment resource */ }
For a full schema, see Gym Equipment Resource.
| Status | Description | Reference |
|---|---|---|
| 422 | Validation error | Validation error |
| 401 | Unauthorized | Authentication error |
| 403 | Forbidden (no permission) | Permission error |