The APIs specific to work packages and that are required to navigate to various objects like components, models, and drawings from work packages are listed.
If you have configured rules of credit for this plant in this site, the meta data will not display the work steps navigation property.
Get all CWAs
Fetches all the Component Work Areas available in Smart Construction database.
GET {{url}}/CWAs
Get all CWPs
Fetches all the Component Work Packages available in Smart Construction database.
GET {{url}}/CWPs
Get all IWPs
Fetches all the Installation Work Packages available in Smart Construction database.
GET {{url}}/IWPs
Navigate from CWAs to related objects
Navigates from the CWA to related CWPs. Displays all the CWAs and the CWPs related to each CWA grouped under it.
GET {{url}}/CWAs?$expand=CWP
Navigates from CWAs to related CWPs, and CWPs to related IWPs. Displays all the CWAs and the CWPs related to each CWA grouped under it. Also, displays all the IWPs related to the CWP grouped under it.
GET {{url}}/SPC/CWAs?$expand=CWP($expand=FIWPs)
Navigate from CWPs to related objects
Navigates from CWPs to IWPs. Displays all the CWPs and the IWPs related to each CWP grouped under it.
GET {{url}}/CWPs?$expand=FIWPs
Navigates from CWPs to CWA. Displays all the CWPs and the CWA they are related to.
GET {{url}}/CWPs?$expand=CWA
Navigates from CWPs to the related Contracts. Displays all the CWPs and the Contracts related to each CWP grouped under it.
GET {{url}}/CWPs?$expand=SPC_Contract
Navigates from CWPs to the related Drawings. Displays all the CWPs and the Drawings related to each CWP grouped under it.
GET {{url}}/CWPs?$expand=Drawings
Navigate from IWPs to related objects
Navigates from IWPs to the related Work Steps. Displays all the IWPs and their Work Steps.
GET {{url}}/IWPs?$expand=SPC_ComponentWorkTypeStep
If you have configured rules of credit for this plant in this site, you cannot navigate to the work steps since we do not create work steps for components.
Navigates from IWP1 to the related Files and Folders. Displays all the Files and Folders related to the IWP named “IWP1”.
GET {{url}}/IWPs?$filter=IWP_Name eq 'IWP1'&$expand=Files,SPC_Folder
Navigates from the IWP to related Drawings. Displays all the IWPs and the Drawings related to each IWP grouped under it.
GET {{url}}/IWPs?$expand=Drawings
Navigates from IWPs to the related Constraints. Displays all the IWPs and the Constraints related to each IWP grouped under it.
GET {{url}}/IWPs?$expand=SPC_PackageConstraint
Navigates from IWPs to the related Components. Displays all the IWPs and the Components related to each IWP grouped under it.
GET {{url}}/SPC/IWPs?$expand=SPC_ComponentItem
Navigates from IWPs to the related Contracts and Contractors. Displays all the IWPs and the Contracts and Contractors related to each IWP grouped under it.
GET {{url}}/SPC/IWPs?$expand=Contract,Contractor