šŸ”“šŸ”µ Delete water intake for a given day.

Deletes water intake for the specified APIUser starting from the most recent entry of the day.
If a timestamp is provided, the operation is scoped to that day up to that time. If not provided, it defaults to today from 00:00:00 to the current localized time of the user.
If the quantity to delete exceeds the most recent intake, earlier intakes are also affected until the requested amount is reached.
If the quantity to delete exceeds the total water logged for the day, all water intakes for that day are deleted and the response reports how much could not be deleted.
When a partial deletion is needed (i.e. the last affected intake has more water than the remaining quantity to delete), that intake is edited rather than fully removed.
Quantity defaults to 250ml if not provided.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
integer
required

ID of the APIUser.

Body Params

A JSON object with the optional quantity to delete in milliliters and an optional timestamp to scope the deletion to a specific day. The request body is optional.

integer
≄ 1

Amount of water in milliliters to delete. Must be greater than or equal to 1. Defaults to 250ml if not provided.

string

Scopes the deletion to the day of this timestamp, up to this time. Following the format '%Y/%m/%d, %H:%M:%S'. If not provided, defaults to today's date and current localized time.

Responses

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json