Add a Commodity Code Detail - Intergraph Smart Reference Data - Customization & Programming - Hexagon

SRD REST API

ft:locale
en-US
Product
Intergraph Smart Reference Data
Search by Category
Customization & Programming
Smart Materials/Smart Reference Data Version
10.6

Headers

Header name

Description

Required

Values

Authorization

Access token

Required

Bearer <access_token>

Content-Type

Request type format

Required

application/json

Post Body

Parameter

Description

Type

Notes

ControlStatus

Retrieves the control status of the instance.

Integer

TableDetailId

Reference to the table detail instance

Integer

UsedForCodeBuilding

Is the table detail used for building the commodity code? Y or N

String

Sample request

POST https://<appserver with domain>/<virtual_directory>/Srd/V2/ Projects('SDB')/Disciplines(5020)/Nls(1)/CommodityGroups(5004)/CommodityParts(5452)/CommodityCodes(87860)/CommodityCodeDetails

{

    "TableDetailId": 57276,

    "UsedForCodeBuilding": "N",

    "ControlStatus": 1

}

Response

Parameter

Description

Type

Notes

CommodityId

A unique ID for the commodity code.

Integer

ControlStatus

Retrieves the control status of the instance.

Integer

SeqId

Sequence of the commodity code detail

Integer

TableDetailId

Reference to the table detail instance

Integer

UsedForCodeBuilding

Is the table detail used for building the commodity code? Y or N

String

Sample Response

{

    "@odata.context": 

"https://<appserver with domain>/<virtual_directory>/Srd/V2/$metadata#Projects('SDB')/Disciplines(5020)/Nls(1)/CommodityGroups(5004)/CommodityParts(5452)/CommodityCodes(87860)/CommodityCodeDetails/$entity",

    "CommodityId": 87860,

    "SeqId": 17,

    "TableDetailId": 57276,

    "UsedForCodeBuilding": "N",

    "ControlStatus": 1

}