List/Get hasLocations relationships for the Asset
GET {{baseUrl}}/assets/:assetId/relationships/has-location
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"links":{"self":"/assets/05085306-9c1d-4cee-b92a-04c07e4b1945/relationships/has-location"},"data":{"attributes":{"label":"Location XYZ","timeZone":"Europe/Zurich","buildingType":"office","constructionYear":2019,"usableArea":{"value":1200,"unit":"m2"},"description":"A properly organized location","externalId":"IfcGuid:1234","tags":{"ipsum__":["consectetur id"],"eiusmod_dd5":["fugiat quis et"]},"geoLocation":{"geometry":{"type":"Point","coordinates":[8.48281,47.19717]}},"geoArea":{"geometry":{"type":"Polygon","coordinates":[[[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}]]]}},"primaryContact":{"name":"Marla Pfahl","email":"marla.pfahl@example.com","phone":"+41 41 234 56 78"}},"id":"c9e01d9d-457c-426f-a186-f7c5e592e1f7","relationships":{"hasPostalAddress":{"data":{"id":"05085306-9c1d-4cee-b92a-04c07e4b1945","type":"Address"}},"isBuildingOf":{"data":{"id":"43997b3e-fe5a-4053-ab90-ed218faa164f","type":"Campus"}}},"type":"Building","meta":{"createdAt":"2023-06-27T06:07:09.467Z","updatedAt":"1974-01-07T01:40:28.883Z","createdBy":"adsf","updatedBy":"adsf"}}}