latestOpenAPI 3.1.02026-08-218667571.2 MB

a8ca30023371

Admin APIs
users

Update User Data Collection Consent

Admin update of a user's data collection consent.

Deliberately separate from PUT /{user_id}: that route validates against UserUpdate, which requires email/first_name/last_name, and treats their presence as a profile change that gets pushed to Okta. Consent has nothing to do with either, so it gets its own single-field route — the same split the marketing-preferences routes above already use.

put/api/v1/admin/users/{user_id}/data-collection-consent

Path parameters

user_idstring required

Request body

data_collection_consent'granted' | 'not-granted' required

Response

Successful Response

data_collection_consent'granted' | 'not-granted' required