Updates a specific gym equipment entry.
Permission | Description |
---|---|
gym_equipment.update | Update equipment for your own gyms |
gym_equipment.update_any | Update equipment for any gym |
Name | Type | Required | Description | Example |
---|---|---|---|---|
gym-id | int | Yes | ID of the gym | 123 |
equipment-id | int | Yes | ID of the gym equipment | 55 |
Name | Type | Required | Description | Example |
---|---|---|---|---|
count | int | No | Number of this equipment in the gym | 10 |
brand_id | int | No | Brand ID (optional) | 2 |
description | string | No | Description (optional) | "..." |
All parameters are optional; only include fields you wish to update. You can set them to null to clear their value.
{
"count": 10,
"brand_id": 2,
"description": "Updated description"
}
Returns the updated 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 |