Replace Nutrition Record
Replace an existing nutrition record.
You can replace an existing nutrition record. All information of the old one will be deleted, and only
the new information will be retained. The record_id will remain the same.
The status of the successfully replaced record will be set to updated while the input type will be updated to manual regardless of the original value.
The language of the provided dish name and description will be neither identified nor validated.
Documentation Index
Fetch the complete documentation index at: https://docs.spikeapi.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Nutrition report record ID
Body
Detected dish name
"beef and broccoli stir-fry"
Serving size in metric units
x >= 0.01120
Metric unit (g for solids, ml for liquids)
g, mg, mcg, ml, kcal "g"
The UTC time when food was consumed. By default, it is set to the record update time
"2006-01-02T15:04:05"
"2006-01-02T15:04:05Z"
Detected dish description
"beef, ground, lean, cooked with broccoli, raw and rice, brown, cooked"
Dish description translated to target language
"Rindfleisch, Hackfleisch, mager, gekocht mit Brokkoli, roh und Reis, braun, gekocht"
Dish name translated to target language
"Rindfleisch und Brokkoli Pfanne"
List of detected ingredients with nutritional information
Nutri-Score known as the 5-Colour Nutrition label (A-E)
"B"
Nutritional values in the given serving size
User's local timezone offset in minutes
-540
Response
OK
Detected dish name
"beef and broccoli stir-fry"
Serving size in metric units
x >= 0.01120
Metric unit (g for solids, ml for liquids)
g, mg, mcg, ml, kcal "g"
The UTC time when food was consumed. By default, it is set to the record update time
"2006-01-02T15:04:05"
"2006-01-02T15:04:05Z"
Detected dish description
"beef, ground, lean, cooked with broccoli, raw and rice, brown, cooked"
Dish description translated to target language
"Rindfleisch, Hackfleisch, mager, gekocht mit Brokkoli, roh und Reis, braun, gekocht"
Dish name translated to target language
"Rindfleisch und Brokkoli Pfanne"
Reason for processing failure
"Unable to identify food items"
List of detected ingredients with nutritional information
Nutrition record input type
image, manual "image"
Update timestamp in UTC
"2025-09-15T10:30:12.132Z"
Nutri-Score known as the 5-Colour Nutrition label (A-E)
"B"
Nutritional values in the given serving size
Report record ID
"6ba7b810-9dad-11d1-80b4-00c04fd430c8"
Processing status
pending, processing, completed, failed, updated "completed"
Upload timestamp in UTC
"2025-09-15T10:30:04.521Z"
User's local timezone offset in minutes
-540
