Update Equipment
PATCH {{baseUrl}}/equipment/:equipmentId
Updates the Equipment
Request Body
{"data"=>{"id"=>"<string>", "type"=>"<string>", "attributes"=>{"name"=>"", "notes"=>"", "externalId"=>"", "serialNumber"=>"<string>", "model"=>"<string>", "manufacturingYear"=>"<string>", "manufacturedBy"=>"<string>", "installationDate"=>"<string>"}, "relationships"=>{"hasEquipmentType"=>{"data"=>{"id"=>"<string>", "type"=>"<string>"}}, "isControlledBy"=>{"data"=>[{"id"=>"<string>", "type"=>"<string>"}, {"id"=>"<string>", "type"=>"<string>"}]}, "isPartOf"=>{"data"=>{"id"=>"<string>", "type"=>"<string>"}}, "feeds"=>{"data"=>[{"id"=>"<string>", "type"=>"<string>"}, {"id"=>"<string>", "type"=>"<string>"}]}, "hasLocation"=>{"data"=>{"id"=>"<string>", "type"=>"<string>"}}}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"links":{"self":"/equipments/05085306-9c1d-4cee-b92a-04c07e4b1945"},"data":{"type":"Equipment","id":"5a16e5da-0508-43fd-afb3-bfd007542b72","attributes":{"name":"hvac 2134444","notes":"HVAC controller","externalId":"789987987","serialNumber":"AB123456","model":"940","manufacturingYear":"1969","manufacturedBy":"1969","installationDate":"Rev5b"},"relationships":{"hasEquipmentType":{"data":{"id":"5a16e5da-0508-43fd-afb3-bfd007542b72","type":"EquipmentType"}},"isControlledBy":{"data":[{"id":"5a16e5da-0508-43fd-afb3-bfd007542b72","type":"Device"},{"id":"5a16e5da-0508-43fd-afb3-bfd007542b72","type":"Device"}]},"isPartOf":{"data":{"id":"5a16e5da-0508-43fd-afb3-bfd007542b72","type":"Equipment"}},"feeds":{"data":[{"id":"5a16e5da-0508-43fd-afb3-bfd007542b72","type":"Equipment"},{"id":"5a16e5da-0508-43fd-afb3-bfd007542b72","type":"Equipment"}]},"hasLocation":{"data":{"id":"43997b3e-fe5a-4053-ab90-ed218faa164f","type":"Location"}}},"meta":{"createdAt":"1979-03-28T05:29:00.171Z","updatedAt":"1948-08-11T17:57:12.244Z","createdBy":"adsf","updatedBy":"adsf"}}}