Create Constraints
You can create constraints along with their properties using the Web APIs.
POST {{url}}/SPCCreateConstraint
Content |
{ ConstraintCreateInfo: { "Status": "[Status of the constraint]", "Purpose": "[Purpose of the constraint]", "Category": "[Category of the constraint]", "SubCategory": "[Subcategory of the constraint]", "Contact": "[Contact information]", "RequiredDate": "[YYYY-MM-DD]", "Details": "[Details of constraint]", "Components": "[Component ID]" } } |
Required information |
|
Notes |
None |
For example,
{
"ConstraintCreateInfo":
{
"Status": "Preliminary",
"Purpose": "Verification",
"Category": "Materials",
"SubCategory": "Permanent",
"Contact": "Admin",
"RequiredDate": "2019 - 10 - 20",
"Details": "This is a materials constraint",
"Components": ["6G4O0I1A"]
}
}
Update Constraints
You can update some properties for the constraints using the Web APIs.
POST {{url}}/SPCUpdateConstraint
Content |
{ "ID": "[Constraint ID]" ConstraintUpdateInfo: { "Status": "[Status of the constraint]", "SubCategory": "[Subcategory of the constraint]", "Contact": "[Contact information]", "RequiredDate": "[YYYY-MM-DD]", "ProjectedDate": "[YYYY-MM-DD]", "CompletedDate": "[YYYY-MM-DD]", "AssetID": "[Asset ID]", "Details": "[Details of constraint]", "ComponentsToAdd": "[List of components to be added]", "ComponentsToRemove": "[List of components to be removed]" } } |
Required information |
|
Notes |
None. |
For example,
{
"ID": "6HFG000A",
"ConstraintUpdateInfo":
{
"Status": "Preliminary",
"SubCategory": "Temporary",
"Contact": "Admin",
"RequiredDate": "2019-10-06",
"ProjectedDate": "2019-10-12",
"AssetID": "Crane001",
"Details": "Constraint information is updated.",
"ComponentsToAdd": ["6G4O0I1B,6G4O0I1C"],
"ComponentsToRemove": ["6G4O0I1A"]
}
}
Delete Constraints
You can delete a constraint using the Web APIs.
POST {{url}}/SPCDeleteConstraint
Content |
{ "ID": "[Constraint ID]" } |
Required information |
|
Notes |
None |
For example,
{
"ID": "6HFG000A"
}