Foods

Save a food

Saves a food or recipe to your foods, or changes one you saved.

post/foods

Request

  • Base URL: https://app.splot.health/v1
  • URL: https://app.splot.health/v1/foods
  • Auth: HTTP bearer

Request body

namestring required

The food's name.

brandstring nullable

The brand, for a packaged product.

barcodestring nullable

The barcode: 8 to 14 digits.

idstring uuid

To change a food you saved before, its key. Leave out to save a new one.

Response

The saved food.

library'off' | 'splot' | 'mine' | 'composition' required

The library the food lives in.

keystring required

Its key in that library. Send library and key as food to log it.

versioninteger required

Foods change over time; meals and recipes keep the version they were saved with.

namestring required

The food's name.

brandstring nullable required

The brand, for packaged products.

barcodestring nullable required

The barcode, for packaged products.

Changes

No recorded changes to this operation across all 1 revision of this API.