Shipment group (ShipmentGroups) - Intergraph Smart Materials - Help - Hexagon

Intergraph Smart Materials Web API Help (10.6)

ft:locale
en-US
Product
Intergraph Smart Materials
Subproduct
Web API
Search by Category
Help
Smart Materials/Smart Reference Data Version
10.6

This API retrieves the shipment group of a project from Smart Materials. You can either retrieve a single shipment group using shipment Id or all the shipment groups of a project.

Required Privilege: API_READONLY

Headers

Header Name

Description

Required

Values

Authorization

Access token

Required

Bearer <access_token>

Content-Type

Request type format

Required

application/JSON

Body

URL Format: GET https://{host}/Smat/V1/Projects(':project')/Disciplines(':discipline')/Nls(':language')/ShipmentGroups({key})

Specify values for the project, discipline, language, and key parameter in the URL. The project, discipline, and language together, define the project environment and the key parameter defines the shipment group Id (SgId).

To retrieve all the shipment groups of a project, use the following URL:

GET https://{host}/Smat/V1/Projects(‘:project’)/Disciplines(‘:discipline’)/Nls(‘:language’)/ShipmentGroups

Sample Code

GET https://{host}/Smat/V1/Projects(‘RS’)/Disciplines(‘PIPING’)/Nls(‘English’)/ShipmentGroups(5081)

Success Response

Status: 200 OK

Content:

{

"@odata.context": "https://{host}/Smat/V1/$metadata#Projects('RS')/Disciplines('PIPING')/Nls('English')/ShipmentGroups",

"value":[

{

"SgId":5081,

"ProjId":"RS",

"PohId":40369,

"SgCode":"00000000RW01-A_001"

}]

}

Element

Description

Type

SgId

Unique ID of the shipment group

Integer

ProjId

Unique ID the Project. Retrieved shipment group belongs to this Project.

String

PohId

Unique ID of the PO header

Integer

SgCode

Name of the shipment group

String