Meals

Import a provider food into the local database (import-on-select)

Fetches full detail from the external provider, upserts it into food_items (canonical store) and returns the local row with a uuid id. Nutrient columns are totals for serving_size_g in serving_size_unit.

post/api/meals/foods/import

Request

  • Base URL
    https://api.hiyd.ai
  • Auth
    HTTP bearer

Request body

external_source'fatsecret' required
external_idstring required

Response

Food imported

Changes

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