DELETE child body fat by ID - ocariot/api-gateway GitHub Wiki
Description
Deletes a body fat measurement data associated with a Child.
Permissions:
-
An Application can delete any Body Fat from any Child.
-
An Educator can delete any Body Fat from any Child as long as the latter belongs to one of their groups.
-
A Family user can delete any Body Fat from any Child associated with it.
Scope
measurements:delete
URL
DELETE https://localhost/v1/children/{child_id}/bodyfats/{bodyfat_id}
Parameters
child_id: string (A 24-byte hex ID)
bodyfat_id: string (A 24-byte hex ID)
Curl example
curl -X DELETE "https://localhost/v1/children/5a62be07d6f33400146c9b61/bodyfats/5c5277b8004ce629c1eef323" -H "accept: /" -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Response body
-
204
Operation performed successfully. There is no data to be returned. -
400
Validation errors -
403
Permission Error