Update user preferences REST API
PUT
/api/user/preferences
const url = 'https://hitkeep.com/api/user/preferences';const options = { method: 'PUT', headers: {cookie: 'hk_token=<hk_token>', 'Content-Type': 'application/json'}, body: '{"default_locale":"example","dismissed_onboarding_at":"2026-04-15T12:00:00Z"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://hitkeep.com/api/user/preferences \ --header 'Content-Type: application/json' \ --cookie hk_token=<hk_token> \ --data '{ "default_locale": "example", "dismissed_onboarding_at": "2026-04-15T12:00:00Z" }'Updates authenticated user preferences.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
default_locale
string
dismissed_onboarding_at
string format: date-time
Examplegenerated
{ "default_locale": "example", "dismissed_onboarding_at": "2026-04-15T12:00:00Z"}Responses
Section titled “Responses”Preferences
Media typeapplication/json
object
default_locale
string
dismissed_onboarding_at
string format: date-time
Examplegenerated
{ "default_locale": "example", "dismissed_onboarding_at": "2026-04-15T12:00:00Z"}