āš«šŸ”“šŸ”µ 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.

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

Parameters to update an intake timestamp.

string
required

Timestamp that will be assigned to the image. It will take into account the user's (owner of the image) timezone. Following the format '%Y/%m/%d, %H:%M:%S'.

integer
required

ID of the image to be modified. The image ID is obtained in the recognition response. It can be obtained through the nutritional information history endpoint too. The user must have access to the image in order to modify it.

Responses
200

Image timestamp successfully updated!

401

Unauthorized, invalid token.

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