Assemblies¶
Get type assemblies¶
GET /types/{typeId}/assemblies
Returns list of assemblies for the given type
Output example:
[
{
"Name": "AC Units",
"Items": [],
"Id": "277831b4-915d-4c1a-9a71-f061706eb571"
}
]
Create type assembly¶
POST /types/{typeId}/assemblies
Create assembly for the given type
Body:
{
"Name": "AC Units",
}
Get type assembly items¶
GET /types/{typeId}/assemblies/{assemblyId}/items
Returns list of items for the given assembly*
Output example:
[
{
"Type": {
"Name": "Air Conditioner (Outdoor Unit)",
"IsMajor": false,
"Specifications": [],
"Assets": [],
"AssetsCount": 0,
"Id": "f9a85305-a7c3-495d-a23e-be60dcabf33c"
},
"Id": "5297a696-35e0-46a8-b5a9-60b25d5dc1f0"
},
{
"Type": {
"Name": "Air Conditioner (Indoor Unit)",
"IsMajor": false,
"Specifications": [],
"Assets": [],
"AssetsCount": 0,
"Id": "6a525842-b1fb-457d-988c-aaeb7c1b0864"
},
"Id": "b8f8b69d-db90-4c02-adb8-b6f6c28fe63e"
}
]
Create type assembly item¶
POST /types/{typeId}/assemblies/{assemblyId}/items
Creates an assembly item of the given assembly
Body:
{
"Type": {
"Id": "f9a85305-a7c3-495d-a23e-be60dcabf33c"
},
"AssemblyType": {
"Id": "18A57A89-F5C4-488C-82CF-8BB0BDEBAD3E"
}
}
Get asset assemblies¶
GET /assets/{assetId}/assemblies
Returns list of assemblies for the given asset
Output example:
[
{
"Name": "AC Units",
"Items": [],
"Id": "277831b4-915d-4c1a-9a71-f061706eb571"
}
]
Get asset assembly items¶
GET /assets/{assetId}/assemblies/{assemblyId}/items
Returns list of items for the given assembly*
Output example:
[
{
"Type": {
"Name": "Air Conditioner (Outdoor Unit)",
"IsMajor": false,
"Specifications": [],
"Assets": [],
"AssetsCount": 0,
"Id": "f9a85305-a7c3-495d-a23e-be60dcabf33c"
},
"Asset": {
"Name": "AC-OU-1",
"LocationsCount": 0,
"Id": "657915b9-f680-4363-9442-d0cea4a2551c"
},
"Id": "5297a696-35e0-46a8-b5a9-60b25d5dc1f0"
},
{
"Type": {
"Name": "Air Conditioner (Indoor Unit)",
"IsMajor": false,
"Specifications": [],
"Assets": [],
"AssetsCount": 0,
"Id": "6a525842-b1fb-457d-988c-aaeb7c1b0864"
},
"Id": "b8f8b69d-db90-4c02-adb8-b6f6c28fe63e"
}
]
Link assets to the assembly¶
PUT /assets/{assetId}/assemblies/{assemblyId}/items/{assemblyItemId}
Creates the linkup of asset to a given assembly item. The asset must be relevant to the assembly item type
SELECT {"Asset"}
Body:
{
"Asset": {
"Id": "657915b9-f680-4363-9442-d0cea4a2551c"
}
}