Set this user's greeting and login-hints preferences
const url = 'http://localhost:11044/api/v1/profile/preferences';const options = { method: 'PUT', headers: {'X-Embabel-Api-Key': '<X-Embabel-Api-Key>', 'Content-Type': 'application/json'}, body: '{"boltMode":"example","greetingEnabled":true,"hintsEnabled":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url http://localhost:11044/api/v1/profile/preferences \ --header 'Content-Type: application/json' \ --header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>' \ --data '{ "boltMode": "example", "greetingEnabled": true, "hintsEnabled": true }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”The whole preference set, not a patch: an omitted greetingEnabled is stored as false and an omitted hintsEnabled as true. boltMode is the exception: omitted leaves it as it is, blank clears it to the Bolt port’s default, and otherwise it is virtual or persisted, case-insensitive (400 for anything else)
Preferences to store, the body of PUT /profile/preferences. Both flags are always written, so an absent one takes its default
object
virtual or persisted, in any case: the surface a Bolt connection gets when it names no database. Absent leaves the choice as it is; blank clears it back to the port’s default
Greet the user when they sign in. Absent means false
Show the login hints popup. Absent means true
Example generated
{ "boltMode": "example", "greetingEnabled": true, "hintsEnabled": true}Responses
Section titled “Responses”BoltMode is a value the Bolt port does not offer. Send it blank to clear the choice back to the port’s default
The body the servlet error dispatch answers for a status raised by an exception rather than written by the endpoint. Every failure except 404, which answers the not-found HTML page
object
The status’s standard reason phrase, such as Bad Request or Forbidden
The request path that failed
The HTTP status code, repeated from the status line

