---
title: "Log a bowel movement"
method: POST
path: "/api/bowel-movements"
tags: ["Bowel Movements"]
---

# Log a bowel movement

`POST /api/bowel-movements`

## 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/bowel-movements`
- Auth: HTTP bearer

## Headers

- `x-timezone` string, required

## Request body

- CreateBowelMovementDto
  - `logged_at` string: ISO timestamp of the BM. Defaults to now. Accepts past timestamps for backfill (REW-410 pattern).
  - `bristol_type` number: Bristol Stool Scale 1-7. Optional — frequency-only logging is allowed.
  - `notes` string
  - `flags` BowelMovementFlagsDto
    - `blood` boolean: Visible blood in stool
    - `pain` boolean: Pain during or around the BM
    - `urgency` boolean: Strong urgency / rush
    - `incomplete` boolean: Felt incomplete

## Response `201`

Created

## Changes

- **2026-09-12** `0d5ef02a4fbe`: 1 breaking
  - added the new required `header` request parameter `x-timezone`

[Operation history](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/changes/api/bowel-movements/post.md)

---

[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)
