Users

Update privacy preferences (AI opt-out, sensitive PI limit)

patch/api/users/privacy-choices

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/users/privacy-choices
  • Auth
    HTTP bearer

Request body

aiTrainingOptOutboolean

Opt out of AI profiling: stops personal health data (food logs, weight, patterns) from being sent to OpenAI for personalized coaching. Tracking features still work — data is saved locally but not analyzed by AI. Required by Quebec Law 25 (profiling opt-out) and CCPA/CPRA (ADMT opt-out).

sensitivePiLimitboolean

CCPA: Limit use of sensitive personal information (disables location tracking and travel context in AI)

privacyAcceptedboolean

Accept the current Privacy Policy version. Required for existing users whose privacy_version does not match the current required version. Must be true — sending false returns 400.

termsAcceptedboolean

Accept the current Terms & Conditions version. Required for existing users whose terms_version does not match the current required version. Must be true — sending false returns 400.

healthDataConsentAcceptedboolean

Re-consent to health and wellness data collection under the current PP version. Required for existing users whose health_data_consent_version is outdated. Must be true — sending false returns 400.

Example request

{
  "aiTrainingOptOut": true,
  "sensitivePiLimit": true,
  "privacyAccepted": true,
  "termsAccepted": true,
  "healthDataConsentAccepted": true
}

Response

unknown required

Example response

{
  "success": true,
  "message": "Privacy choices updated successfully",
  "updatedFields": [
    "sensitive_pi_limit"
  ]
}

Changes

No recorded changes to this operation across all 34 revisions of this API.