List/Get hasParts relationships for the Location

GET {{baseUrl}}/locations/:locationId/relationships/has-parts?page[size]=100

Request Params

KeyDatatypeRequiredDescription
page[size]numberThe numbers of items to return

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"links":{"self":"/locations/05085306-9c1d-4cee-b92a-04c07e4b1945/relationships/has-parts"},"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":{"quis8b7":["sunt ea"]},"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"}]]}},"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":"1957-07-11T12:15:16.905Z","updatedAt":"1967-05-18T20:39:39.769Z","createdBy":"adsf","updatedBy":"adsf"}},{"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":{"Lorem3":["ad amet sunt ea"]},"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"}]]}},"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":"1949-09-13T11:21:46.654Z","updatedAt":"1947-07-26T20:19:41.750Z","createdBy":"adsf","updatedBy":"adsf"}}]}