⚫🔴🔵 Modify the timestamp of an uploaded intake

Modify the timestamp of a previously uploaded intake (image). By default the images are created with the moment of the request as the timestamp (taking into consideration the user's assigned timezone).

 

This endpoint can be used to move intakes to a moment of your choice, so it can be taken into account properly in the nutritional intake history. When editing the image timestamp using this endpoint its occasion will be updated accordingly (e.g. if changing its timestamp to 12:30pm its occasion will become 'lunch'). See more info about occasions in /intake/modifyOccasion.

 

Important limitation: This feature cannot be used with images that come from a kiosk. The reason is that these images are tied to what was served on a specific day and time. Changing their timestamp would create inconsistencies with the meals available at that moment.

 

To know if an image is of type kiosk, you can check the endpoints /getIntakesList or [GET] /intakes. If the image has the flag is_kiosk_image = true, its timestamp cannot be modified.

Language
Credentials
Bearer
JWT
Response
Click Try It! to start a request and see the response here!