Create device

POST {{baseUrl}}/devices

Create device

Request Body

{"data"=>{"type"=>"<string>", "attributes"=>{"modelName"=>"<string>", "serialNumber"=>"<string>"}}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;links&quot;:{&quot;self&quot;:&quot;https://api.bpcloud.siemens.com/operations/partitions/b2ae267d-1d74-4e2a-bff8-e7c90a3b854a/devices/1bcaafc3-d4d3-43e1-ab64-89d8518d5951&quot;},&quot;data&quot;:{&quot;type&quot;:&quot;Device&quot;,&quot;id&quot;:&quot;1bcaafc3-d4d3-43e1-ab64-89d8518d5951&quot;,&quot;attributes&quot;:{&quot;modelName&quot;:&quot;MSIB CCA&quot;,&quot;serialNumber&quot;:&quot;L7955828&quot;,&quot;profile&quot;:{&quot;name&quot;:&quot;X300-5&quot;,&quot;notes&quot;:&quot;In basement, ask Bruno for key&quot;}},&quot;relationships&quot;:{&quot;hasGateway&quot;:{&quot;data&quot;:{&quot;type&quot;:&quot;quis &quot;,&quot;id&quot;:&quot;1bcaafc3-d4d3-43e1-ab64-89d8518d5951&quot;}},&quot;hasLocation&quot;:{&quot;data&quot;:{&quot;type&quot;:&quot;laboris nisi quis laborum incididunt&quot;,&quot;id&quot;:&quot;598a0329-2cca-4227-aea5-629862864cdf&quot;}},&quot;hasFeatures&quot;:{&quot;data&quot;:{}}}}}