Optional
init: RequestInitOptional
init: RequestInitCreate a flag in the NutriPatrol API.
Data for the flag to create.
Optional
barcode?: null | stringBarcode
Optional
comment?: null | stringComment
Optional
confidence?: null | numberConfidence
Optional
created_at?: stringCreated At Format: date-time
Optional
image_id?: null | stringImage Id
Optional
reason?: null | stringReason
Url
User Id
The error can be one of the following:
NutriPatrolError
with status 422 if there is a validation issue (e.g., invalid flag ID).NutriPatrolError
with the corresponding HTTP status code for other types of errors (e.g., 404, 500).NutriPatrolError
with status 500 for unexpected errors.Create a ticket in the NutriPatrol API.
Data for the ticket to create.
The error can be one of the following:
NutriPatrolError
with status 422 if there is a validation issue (e.g., invalid ticket status).NutriPatrolError
with the corresponding HTTP status code for other types of errors (e.g., 404, 500).NutriPatrolError
with status 500 for unexpected errors.Get the status of the NutriPatrol API.
The error can be one of the following:
NutriPatrolError
with the corresponding HTTP status code for other types of errors (e.g., 404, 500).NutriPatrolError
with status 500 for unexpected errors.Retrieves a specific flag by its ID from the NutriPatrol API.
The ID of the flag to fetch.
The error can be one of the following:
NutriPatrolError
with status 422 if there is a validation issue (e.g., invalid flag ID).NutriPatrolError
with the corresponding HTTP status code for other types of errors (e.g., 404, 500).NutriPatrolError
with status 500 for unexpected errors.List all flags.
The error can be one of the following:
NutriPatrolError
with status 422 if there is a validation issue (e.g., invalid flag ID).NutriPatrolError
with the corresponding HTTP status code for other types of errors (e.g., 404, 500).NutriPatrolError
with status 500 for unexpected errors.Get flags by ticket batch.
Ids of ticket to get flags from.
The error can be one of the following:
NutriPatrolError
with status 422 if there is a validation issue (e.g., invalid flag ID).NutriPatrolError
with the corresponding HTTP status code for other types of errors (e.g., 404, 500).NutriPatrolError
with status 500 for unexpected errors.Retrieves a specific ticket by its ID from the NutriPatrol API.
The ID of the ticket to fetch.
The error can be one of the following:
NutriPatrolError
with status 422 if there is a validation issue (e.g., invalid ticket ID).NutriPatrolError
with the corresponding HTTP status code for other types of errors (e.g., 404, 500).NutriPatrolError
with status 500 for unexpected errors.List all tickets.
Parameters to filter the tickets.
The error can be one of the following:
NutriPatrolError
with status 422 if there is a validation issue (e.g., invalid filter value).NutriPatrolError
with the corresponding HTTP status code for other types of errors (e.g., 404, 500).NutriPatrolError
with status 500 for unexpected errors.Update a ticket status in the NutriPatrol API.
The ID of the ticket to update.
The new status of the ticket.
The error can be one of the following:
NutriPatrolError
with status 422 if there is a validation issue (e.g., invalid ticket status).NutriPatrolError
with the corresponding HTTP status code for other types of errors (e.g., 404, 500).NutriPatrolError
with status 500 for unexpected errors.
MDN Reference