Add a location
Add a location at the top level, or inside another one.
Start with a home or a building, then add the rooms and the furniture inside it, sending the id of each as the parent_id of the next.
The change is written to the account log.
Body parameters
Sent as JSON. Anything not listed here is ignored.
What the location is called. Up to 255 characters. Markup and surrounding blank space are stripped, and a name left with nothing in it is refused.
The location it sits inside. Null puts it at the top level, and so does leaving it out of a new location. A location of somebody else is refused, and so is the location itself or one inside it.
Exactly one emoji. A family, a flag or a skin tone counts as one. Letters, or two emoji, are refused.
Free text over several lines, up to 2,000 characters. Without one, the location uses the address of the nearest location around it that has one.
Returns
The location object that was added.
The location.
Always location. It names the kind of record, so a caller holding several kinds can tell them apart without looking at where they came from.
The id of this record, as a string even when it reads as a number. It is what every endpoint naming this record takes.
Everything the record holds.
The location it sits inside, or null at the top level.
What the location is called: a town, a house, a room, a shelf, a box. Two locations may share a name; the path tells them apart.
One emoji shown in place of the default icon, or null for none.
The address written on the location itself, as free text over several lines, or null. Nothing geocodes it.
Every location from the top level down to this one, joined by " › ". It is how a location is named wherever one is chosen.
The address that applies to the location: its own, or else that of the nearest location around it that has one. Null when none of them has an address.
The address, as it was written.
The location the address is written on, which is this one when it has its own.
The name of that location.
How many locations sit directly inside this one. A location holding any cannot be deleted.
When the location was added, as a count of seconds since 1970 rather than a written date.
When it last changed, as a count of seconds. Equal to created_at until it is changed.
Where to find this record.
The absolute address this record is read from.
The screen where the location is edited in the application, which opens for somebody signed in rather than for a key. It is the link to give a person.
Rate limit
Sixty requests per minute, per user, shared by every key and device. Every answer carries the budget left in X-RateLimit-Remaining.
Keys act as you, with exactly the access you have. Make one per integration so you can revoke it alone.