Login | Sign Up
  • FA
  • EN

API Docs

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

Delete a supplement. Optionally transfer attached data to another supplement.


Permissions

PermissionDescription
supplements.view_allAccess supplements
supplements.deleteDelete supplement

Request Body Parameters

NameTypeRequiredDescription
replacement_idintegerNoID of another supplement to transfer attached data (optional)

Response

204 No Content

No content is returned when the supplement is deleted successfully.


Error Responses

StatusDescriptionReference
400When supplement has data and replacement_id is not provided or is not valid. Number of attached items is returned in attached_data.
401UnauthorizedAuthentication error
403Forbidden (no permission)Permission error
404Not foundNot-found error

footer wave
logo

Dambel, the smart world of fitness and nutrition

LinkedinInstagramXYoutubeTelegramGitHub