latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-14129143297.4 KB

0e52fe5f8d33

Update Data Sharing Consent

Toggle the current user's data sharing consent.

Stamps data_sharing_consent_at with the current UTC time on every call, regardless of whether the value changed. This makes the column a "last toggled at" timestamp rather than a "first opted in at" one, which is the cheaper guarantee to keep correct: a one-shot accidental double-PUT can't drift the timestamp.

put/api/user/data-sharing-consent

Request body

consentboolean required

Response

Successful Response

data_sharing_consentboolean required
data_sharing_consent_atstring nullable required