v1

latestOpenAPI 3.1.02026-07-17505190.2 KB

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