ورود | ثبت نام
  • FA
  • EN

API Docs

PUT /api/v1/gyms/{gym-id}/equipment/{equipment-id}

Updates a specific gym equipment entry.


Permissions

PermissionDescription
gym_equipment.updateUpdate equipment for your own gyms
gym_equipment.update_anyUpdate equipment for any gym

URL Parameters

NameTypeRequiredDescriptionExample
gym-idintYesID of the gym123
equipment-idintYesID of the gym equipment55

Request Body Parameters

NameTypeRequiredDescriptionExample
countintNoNumber of this equipment in the gym10
brand_idintNoBrand ID (optional)2
descriptionstringNoDescription (optional)"..."

All parameters are optional; only include fields you wish to update. You can set them to null to clear their value.


Request Example

{
  "count": 10,
  "brand_id": 2,
  "description": "Updated description"
}

Response

200 OK

Returns the updated gym equipment resource.

Example

{ /* gym equipment resource */ }

For a full schema, see Gym Equipment Resource.


Error Responses

StatusDescriptionReference
422Validation errorValidation error
401UnauthorizedAuthentication error
403Forbidden (no permission)Permission error
footer wave
logo

دمبل، دنیای هوشمند ورزش و تغذیه

LinkedinInstagramXYoutubeTelegram