---
title: "Create one or many food log entries"
method: POST
path: "/api/food-log"
tags: ["Food Log"]
---

# Create one or many food log entries

`POST /api/food-log`

## Request

- Base URL: `https://api.rewritelifestyle.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.rewritelifestyle.ai/api/food-log`
- Auth: HTTP bearer

Body may be a single CreateFoodLogDto or a non-empty array of them. Single body returns { foodLog }; array body returns { foodLogs[] }. Items are persisted sequentially with the same per-row pipeline as the single path (FatSecret recompute, coach notify, badges, vault hooks). Fail-fast — a mid-array failure leaves earlier rows saved.

## Headers

- `x-timezone` string, required

## Response `201`

- unknown

---

[API](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api.md) - [All operations](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/revisions/28695827f27a?raw)
