---
title: "Toggle the current user's health-data sharing consent. Sets users.health_data_consent_at to NOW() on grant (idempotent — already-true does not bump the timestamp) or null on revocation. The bridge HealthDataConsentGuard (REW-421) reads this column before returning per-user health data to Lucille. Premium-only."
method: PUT
path: "/api/health/consent"
tags: ["Health"]
---

# Toggle the current user's health-data sharing consent. Sets users.health_data_consent_at to NOW() on grant (idempotent — already-true does not bump the timestamp) or null on revocation. The bridge HealthDataConsentGuard (REW-421) reads this column before returning per-user health data to Lucille. Premium-only.

`PUT /api/health/consent`

## 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/health/consent`
- Auth: HTTP bearer

## Request body

- SetHealthConsentDto
  - `consent` boolean, required: Whether the user consents to share their health data with their coach. Setting true creates the consent timestamp; setting false revokes it.

## Response `200`

---

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