Set or clear this user's home location
const url = 'http://localhost:11044/api/v1/profile/home';const options = { method: 'PUT', headers: {'X-Embabel-Api-Key': '<X-Embabel-Api-Key>', 'Content-Type': 'application/json'}, body: '{"label":"example","latitude":1,"longitude":1}'};
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/home \ --header 'Content-Type: application/json' \ --header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>' \ --data '{ "label": "example", "latitude": 1, "longitude": 1 }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”The home location, replacing any stored one. latitude and longitude are decimal degrees; a blank label becomes home. No coordinates and no label other than home clears the home location instead
A home location to set, the body of PUT /profile/home. No coordinates and no label other than home clears it
object
Human-readable label; absent or blank means home
WGS84 latitude in decimal degrees; absent or null when unknown
WGS84 longitude in decimal degrees; absent or null when unknown
Example generated
{ "label": "example", "latitude": 1, "longitude": 1}Responses
Section titled “Responses”OK
The signed-in user’s display name and home location, answered by GET /profile and by the profile writes
object
The name the assistant uses for this user. Never null: until a name is set it falls back to the account’s id
Home location, or null when none is set
object
Human-readable label, e.g. home
WGS84 latitude in decimal degrees, or null when only a label is known
WGS84 longitude in decimal degrees, or null when only a label is known

