Update Location

PATCH {{baseUrl}}/locations/:locationId

Updates the Location

Request Body

{"data"=>{"id"=>"<string>", "type"=>"<string>", "attributes"=>{"label"=>"<string>", "timeZone"=>"<string>", "description"=>"<string>", "externalId"=>"<string>", "tags"=>{"dolor8e_"=>["<string>"], "occaecat_6"=>["<string>"], "voluptate397"=>["<string>"]}, "geoLocation"=>{"geometry"=>{"type"=>"<string>", "coordinates"=>["<number>", "<number>"]}}, "geoArea"=>{"geometry"=>{"type"=>"<string>", "coordinates"=>[[[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}], [{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}], [{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}], [{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}]]]}}, "primaryContact"=>{"name"=>"<string>", "email"=>"<string>", "phone"=>"<string>"}}, "relationships"=>{"hasPostalAddress"=>{"data"=>{"id"=>"<string>", "type"=>"<string>"}}}}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;links&quot;:{&quot;self&quot;:&quot;/locations/05085306-9c1d-4cee-b92a-04c07e4b1945&quot;},&quot;data&quot;:{&quot;attributes&quot;:{&quot;label&quot;:&quot;Aspern Smart City Campus&quot;,&quot;timeZone&quot;:&quot;Europe/Zurich&quot;,&quot;description&quot;:&quot;A properly organized location&quot;,&quot;externalId&quot;:&quot;IfcGuid:1234&quot;,&quot;tags&quot;:{&quot;ut_c41&quot;:[&quot;eiusmod&quot;],&quot;aliqua_2_&quot;:[&quot;veniam dolor&quot;]},&quot;geoLocation&quot;:{&quot;geometry&quot;:{&quot;type&quot;:&quot;Point&quot;,&quot;coordinates&quot;:[8.48281,47.19717]}},&quot;geoArea&quot;:{&quot;geometry&quot;:{&quot;type&quot;:&quot;Polygon&quot;,&quot;coordinates&quot;:[[[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}],[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}],[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}],[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}]]]}},&quot;primaryContact&quot;:{&quot;name&quot;:&quot;Marla Pfahl&quot;,&quot;email&quot;:&quot;marla.pfahl@example.com&quot;,&quot;phone&quot;:&quot;+41 41 234 56 78&quot;}},&quot;id&quot;:&quot;43997b3e-fe5a-4053-ab90-ed218faa164f&quot;,&quot;type&quot;:&quot;Campus&quot;,&quot;relationships&quot;:{&quot;hasPostalAddress&quot;:{&quot;data&quot;:{&quot;id&quot;:&quot;05085306-9c1d-4cee-b92a-04c07e4b1945&quot;,&quot;type&quot;:&quot;Address&quot;}}},&quot;meta&quot;:{&quot;createdAt&quot;:&quot;1994-12-08T13:23:14.746Z&quot;,&quot;updatedAt&quot;:&quot;1986-05-13T00:56:16.972Z&quot;,&quot;createdBy&quot;:&quot;adsf&quot;,&quot;updatedBy&quot;:&quot;adsf&quot;}}}