Create Components in Installation Work Packages
If you have configured rules of credit for this plant in this site, you cannot use this API to add manual components to installation work packages.
You can create component in installation work packages (IWP) along with their properties using the Web APIs.
POST {{url}}/SPCCreateManualComponentForInstallationWorkPackage
Content |
{ "ID": "[Package ID of the IWP]", "IWPManualComponentCreateInfo": { "Description": "[Description for the Component]", "Sequence": "[Sequence Number]", "DrawingID": "[Drawing ID]", "Units": "[Unit Value]", "Units_UOM": "[Unit of measurement for the Unit]" } } |
Required information |
|
Notes |
None |
For example,
{
"ID": "6GKO000A",
"IWPManualComponentCreateInfo":
{
"Description": "Adhoc-01",
"Sequence": "5",
"DrawingId": "6GGX0GSA",
"Units": "12",
"Units_UOM": "m"
}
}
Update Components in Installation Work Packages
If you have configured rules of credit for this plant in this site, you cannot use this API to update manual components to installation work packages.
You can update some properties for the component in an installation work package (IWP) using the Web APIs.
POST {{url}}/SPCUpdateManualComponentForInstallationWorkPackage
Content |
{ "IWPID":"[Package ID of the IWP]", "ComponentID": "[Component ID of the Component]", "IWPManualComponentUpdateInfo": { "Sequence": "[Sequence Number]", "DrawingID": "[Drawing ID]", "Units": "[Units Value]", "Units_UOM": "[Unit of measurement for the Unit]", "IsComplete": "[Status of the component as Boolean]" } } |
Required information |
|
Notes |
None |
For example,
{
"IWPID":"6GKO000A",
"ComponentID": "6HSE000A",
"IWPManualComponentUpdateInfo":
{
"Sequence": 20,
"DrawingId": "6GH20O5A",
"Units": 7,
"Units_UOM": "kg",
"IsComplete": "True"
}
}
Delete Components from Installation Work Packages
You can delete component from an installation work package (IWP) using the Web APIs.
POST {{url}}/SPCDeleteManualComponentForInstallationWorkPackage
Content |
{ IWPID: "[Package ID of the IWP]", ComponentIDs: "['XXXX', 'XXXX', 'XXXX']", RemoveNonrelatedDrawing: "[Boolean]" } |
Required information |
|
Notes |
None |
For example,
{
IWPID: "6GKO000A",
ComponentIDs: "['6HSM000A']",
RemoveNonrelatedDrawing: "false"
}