Create Construction Work Package
You can create construction work package (CWP) along with their properties using the Web APIs.
POST {{url}}/SPCCreateConstructionWorkPackage
Content |
{ CWPCreateInfo: { "Name": "[Name of the CWP]", "Description": "[Description of the CWP]", "EWPNumber":"[Engineering Work Package Number]", "Discipline": "[Discipline]", "CWAID": "[Package ID of the CWA]", "PlannedStartDate": "[YYYY-MM-DD]", "PlannedFinishDate": "[YYYY-MM-DD]", "ActualStartDate": "[YYYY-MM-DD]", "ActualFinishDate": "[YYYY-MM-DD]" }, } |
Required information |
|
Notes |
None |
For example,
{
CWPCreateInfo:
{
"Name": "TestUser CWP",
"Description": "Test CWP",
"EWPNumber":"EWP-001",
"Discipline": "Piping",
"CWAID": " 6GKM000A",
"PlannedStartDate": "2018-09-28",
"PlannedFinishDate": "2018-09-30",
"ActualStartDate": "2018-10-28",
"ActualFinishDate":"2018-10-30"
},
}
Update Construction Work Package
You can update some properties for the construction work package (CWP) using the Web APIs.
POST {{url}}/SPCUpdateConstructionWorkPackage
Content |
{ “ID”: “[Construction Work Package ID]” CWPUpdateInfo: { "Description": "[Description of the CWP]", "EWPNumber": "[Engineering Work Package Number]", "Discipline": "[Discipline]", "CWAID": "[Construction Work Package ID]", "PlannedStartDate": "[YYYY-MM-DD]", "PlannedFinishDate": "[YYYY-MM-DD]", "ActualStartDate": "[YYYY-MM-DD]", "ActualFinishDate": "[YYYY-MM-DD]" }, } |
Required information |
|
Notes |
None. |
For example,
{
"ID": "6HFU000A",
"CWPUpdateInfo":
{
"Description": "Updated the CWP",
"EWPNumber": "Updated the EWP-001",
"Discipline": "Piping",
"CWAID": "6GKM000A",
"PlannedStartDate": "2018-10-04",
"PlannedFinishDate": "2018-10-11",
"ActualStartDate": "2018-10-06",
"ActualFinishDate": "2018-10-12"
},
}
Delete Construction Work Package
You can delete a construction work package (CWP) using the Web APIs.
POST {{url}}/SPCDeleteConstructionWorkPackage
Content |
{ "ID": "[Package ID of the CWP]" } |
Required information |
|
Notes |
None |
For example,
{
"ID": "6GYC000A"
}