Login | Sign Up
  • FA
  • EN

API Docs

PUT /api/v1/admin/supplements/{supplement-id}

Update an existing supplement.


Permissions

PermissionDescription
supplements.view_allAccess supplements
supplements.updateUpdate supplement

Request Body Parameters

NameTypeRequiredDescription
titlestringNoName of the supplement (max 255)
linkstringNoWiki link (max 255, optional)
descriptionstringNoDescription (optional)

All parameters are optional. If omitted, they will not be updated.


Response

200 OK

{
  "data": { /* supplement resource */ }
}

Error Responses

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

footer wave
logo

Dambel, the smart world of fitness and nutrition

LinkedinInstagramXYoutubeTelegramGitHub