View plant groups - Intergraph Smart Engineering Manager - Help - Intergraph

Intergraph Smart Engineering Manager Smart API Help (Version 2)

PPMProduct
Intergraph Smart Engineering Manager
PPMCategory_custom
Help
Version_WebSEM
2.0

Use the GET method to view the plant groups in a specified plant with the following input:

  • Service Root URI: https://<Server Name>/<IIS Application Name>/sem/v2

  • Resource path: /Sites('<Site Name>')/Plants('<Plant Name>')/PlantGroups

Resource path strings are case-sensitive.

Sample URI for viewing all plant groups

GET

https://WebApiServer1.APIServerDomain.com/sem-webapi/sem/v2/Sites('WebAPISite_01')/Plants('WebAPIPlant_01')/PlantGroups

Sample JSON response

A typical response to the request is:

{

"@odata.context": "https://localhost/sem-webapi/sem/v2/$metadata#Sites('WebAPISite_01')/Plants('WebAPIPlant_01')/PlantGroups",

    "value": [

        {

"Id": "7AD2A6F3C5EF48F18023B7276EB2192F",

"ConcurrencyToken": "5248391434838837786",

"Name": "a1",

"Description": "",

"PlantGroupType": "Area",

"Level": "1",

"ParentId": "9A2771AC531246A3BE9BE8920F32F8BD"

},

{

"Id": "3A7B706F5E1E4838B646C7AFD47B29E6",

"ConcurrencyToken": "5248391434838837786",

"Name": "u1",

"Description": "",

"PlantGroupType": "Unit",

"Level": "2",

"ParentId": "7AD2A6F3C5EF48F18023B7276EB2192F"

        }

    ]

}

Sample URI for viewing specific plant group

GET

https://WebApiServer1.APIServerDomain.com/sem-webapi/sem/v2/Sites('WebAPISite_01')/Plants('WebAPIPlant_01')/PlantGroups('3A7B706F5E1E4838B646C7AFD47B29E6')