If you have configured rules of credit for this plant in this site, you cannot use the following APIs since we do not create work steps for components.
Create manual Work Step for Component Object
You can add manual work steps for components and can add a Standard Installation Detail (SID) as a work step using the Web APIs.
POST {{url}}/ SPCCreateManualWorkStep
Content |
{ WorkStepCreateInfo: { "IWPID":"[Work Package ID of the IWP]", "ComponentID":"[Component ID]", "WorkStepName":"[Name of the manual work step]", "Notes":"[Notes for the work step]", "Sequence":"[Sequence number for work step]", "PlannedManHours":"[Planned man hours for the work step]", "QuantityCompleted":"[Quantity completed]", "sidID":"[SID ID]" }, } |
Required information |
|
Notes |
|
For example,
{
"WorkStepCreateInfo":
{
"IWPD":"6GKO000A",
"ComponentID": "6GGF231A",
"WorkStepName": "ManualStep-001",
"Notes": "Created the Manual Work step",
"Sequence": "2",
"PlannedManHours": "9",
"QuantityCompleted": "5",
}
}
Update manual Work Step for Component Object
You can update some properties of the manual work steps for components using the Web APIs.
POST {{url}}/ SPCUpdateWorkStep
Content |
{ "ID": "[Component ID]", WorkStepUpdateInfo: { "Name": "XXXX", "Description": "XXXX", "Sequence": "XXXX", "PlannedManHours": "XX", "ActualManHours": "XX", "ActualQuantity": "XX", "AdjustmentFactor": "XX", "ActualDateComplete": "XX-XX-XXXX", "IsMaterialConsumed": "XXXX", "Notes": "XXXX", "Progress": {"ProgressType": "CompletedQuantity/ PercentageComplete/ IsCompleted", "ProgressValue": "XX"} }, } |
Required information |
|
Notes |
|
For example,
{
"ID": "6GGQ9LRA",
"WorkStepUpdateInfo":
{
"Sequence": "5",
"ActualDateComplete": "06-14-2018",
"Notes": "Updating the WorkStep"
}
}
Remove Work step
You can update delete work steps for components using the Web APIs.
POST {{url}}/SPCRemoveWorkStepFromInstallationWorkPackage
Content |
{ "ID": "[Work step ID]" } |
Required information |
|
Notes |
None |
For example,
{
"WorkstepID": "6I1B000A"
}