āš«šŸ”“šŸ”µ Modify the occasion of an uploaded intake

Modify the occasion of a previously uploaded intake (image). By default the images have an occasion assigned based on the moment of the request as the timestamp (taking into consideration the user's assigned timezone and if the user belongs to a company, in this case, if the company has defined occasions).

Ā 

This endpoint can be used to group the intakes for each occasion of the day, so it can be taken into account, for example, for displaying purposes.

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

Parameters to update an intake occasion.

string

Occasion that will be assigned to the image. Only valid for default occasions: breakfast, lunch, dinner, snack.

integer

Occasion id that will be assigned to the image. Only valid if the company has valid custom_occasions.

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 occasion 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