Objects
Buildings and addresses. Push them on their own when several units share an address.
Read an object
id is a Shace UUID or ext:<externalRef>. A UUID that is not one of your objects is looked up as an externalRef, so the URL you pushed to with PUT always reads back.
path Parameters
idObject id, or ext:<your reference>.
Read an object › Responses
OK
id^([0-9a-fA-F]{8}-[0-… · requiredShace id.
Your reference, or null when the object was created in the app.
statusarchived objects cannot carry published listings.
streetAddressStreet and number.
Floor, entrance or suite, or null.
postalCodePostal code.
cityCity.
County or region, or null.
countryCodeISO 3166-1 alpha-2.
Geocoded point, WGS84.
listingCountListings on this object, in any status.
createdViaWhether the object was created in the app or through this API.
createdAt^(?:(?:\d\d[2468][04… · requiredISO 8601 UTC.
updatedAt^(?:(?:\d\d[2468][04… · requiredISO 8601 UTC.
Create or update an object (a building or address) by your own reference
Idempotent. Geocoded on create and whenever the address changes; an unchanged address is a no-op. Pushing the ref of an archived object puts it back in service, but does not republish the listings that archiving unpublished: push each of them again to bring them back.
Outcomes
The same request in other situations, as outcome and status:
- First push of a new reference:
created,active - The same address again: not geocoded again, nothing is written:
unchanged,active - The address changed: geocoded again, every listing on the object follows:
updated,active - The reference of an archived object, pushed again:
updated,active
path Parameters
idYour external reference for the object, URL-encoded. Send it directly, without adding ext:.
Create or update an object (a building or address) by your own reference › Request Body
streetAddressStreet and number, as the landlord writes it.
postalCodePostal code.
cityCity.
Floor, entrance or suite. Optional.
County or region. Optional.
countryCodeISO 3166-1 alpha-2. Only SE is enabled today.
Create or update an object (a building or address) by your own reference › Responses
OK
id^([0-9a-fA-F]{8}-[0-… · requiredShace id.
Your reference, or null when the object was created in the app.
statusarchived objects cannot carry published listings.
streetAddressStreet and number.
Floor, entrance or suite, or null.
postalCodePostal code.
cityCity.
County or region, or null.
countryCodeISO 3166-1 alpha-2.
Geocoded point, WGS84.
listingCountListings on this object, in any status.
createdViaWhether the object was created in the app or through this API.
createdAt^(?:(?:\d\d[2468][04… · requiredISO 8601 UTC.
updatedAt^(?:(?:\d\d[2468][04… · requiredISO 8601 UTC.
outcomeWhat the request did. unchanged means the address matched what Shace already holds.
Archive an object
id is a Shace UUID or ext:<externalRef> (a UUID that is not one of your objects is looked up as an externalRef). Nothing is hard-deleted. The object is archived and any published listings on it are unpublished; their ids are returned. Idempotent.
path Parameters
idObject id, or ext:<your reference>.
Archive an object › Responses
OK
id^([0-9a-fA-F]{8}-[0-… · requiredShace id of the object.
statusAlways archived.
unpublishedListingIdsListings that were live on the object and are now unpublished.
List your objects
Newest first, cursor paginated. Archived objects are excluded unless includeArchived=true.
query Parameters
cursornextCursor from the previous page.
limitPage size, 1 to 200.
includeArchivedInclude archived objects.
List your objects › Responses
OK
The page, newest first.
Pass as ?cursor= to fetch the next page; null on the last page.