Update user preferences
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 Body required
Section titled “Request Body required ” Media type application/json
object
default_locale
string
dismissed_onboarding_at
string format: date-time
Example generated
{ "default_locale": "example", "dismissed_onboarding_at": "2026-04-15T12:00:00Z"}Responses
Section titled “ Responses ”Preferences
Media type application/json
object
default_locale
string
dismissed_onboarding_at
string format: date-time
Example generated
{ "default_locale": "example", "dismissed_onboarding_at": "2026-04-15T12:00:00Z"}