Create Equipment

POST {{baseUrl}}/equipment

Creates a new Equipment

Request Body

{"data"=>{"type"=>"<string>", "id"=>"<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

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;links&quot;:{&quot;self&quot;:&quot;/equipments/05085306-9c1d-4cee-b92a-04c07e4b1945&quot;},&quot;data&quot;:{&quot;type&quot;:&quot;Equipment&quot;,&quot;id&quot;:&quot;5a16e5da-0508-43fd-afb3-bfd007542b72&quot;,&quot;attributes&quot;:{&quot;name&quot;:&quot;hvac 2134444&quot;,&quot;notes&quot;:&quot;HVAC controller&quot;,&quot;externalId&quot;:&quot;789987987&quot;,&quot;serialNumber&quot;:&quot;AB123456&quot;,&quot;model&quot;:&quot;940&quot;,&quot;manufacturingYear&quot;:&quot;1969&quot;,&quot;manufacturedBy&quot;:&quot;1969&quot;,&quot;installationDate&quot;:&quot;Rev5b&quot;},&quot;relationships&quot;:{&quot;hasEquipmentType&quot;:{&quot;data&quot;:{&quot;id&quot;:&quot;5a16e5da-0508-43fd-afb3-bfd007542b72&quot;,&quot;type&quot;:&quot;EquipmentType&quot;}},&quot;isControlledBy&quot;:{&quot;data&quot;:[{&quot;id&quot;:&quot;5a16e5da-0508-43fd-afb3-bfd007542b72&quot;,&quot;type&quot;:&quot;Device&quot;},{&quot;id&quot;:&quot;5a16e5da-0508-43fd-afb3-bfd007542b72&quot;,&quot;type&quot;:&quot;Device&quot;}]},&quot;isPartOf&quot;:{&quot;data&quot;:{&quot;id&quot;:&quot;5a16e5da-0508-43fd-afb3-bfd007542b72&quot;,&quot;type&quot;:&quot;Equipment&quot;}},&quot;feeds&quot;:{&quot;data&quot;:[{&quot;id&quot;:&quot;5a16e5da-0508-43fd-afb3-bfd007542b72&quot;,&quot;type&quot;:&quot;Equipment&quot;},{&quot;id&quot;:&quot;5a16e5da-0508-43fd-afb3-bfd007542b72&quot;,&quot;type&quot;:&quot;Equipment&quot;}]},&quot;hasLocation&quot;:{&quot;data&quot;:{&quot;id&quot;:&quot;43997b3e-fe5a-4053-ab90-ed218faa164f&quot;,&quot;type&quot;:&quot;Location&quot;}}},&quot;meta&quot;:{&quot;createdAt&quot;:&quot;1979-03-28T05:29:00.171Z&quot;,&quot;updatedAt&quot;:&quot;1948-08-11T17:57:12.244Z&quot;,&quot;createdBy&quot;:&quot;adsf&quot;,&quot;updatedBy&quot;:&quot;adsf&quot;}}}