Edit a Commodity Rule - Intergraph Smart Reference Data - Version 2016 R4 (8.4) - Administration & Configuration - Intergraph

Intergraph Smart Reference Data REST API 2016 R4 (8.4)

Language
English
Product
Intergraph Smart Reference Data
Search by Category
Administration & Configuration
Smart Materials/Smart Reference Data Version
2016 R4 (8.4)

Headers

Header name

Description

Required

Values

Authorization

Access token

Required

Bearer <access_token>

Content-Type

Request type format

Required

application/json

PUT body

Element

Description

Type

Required

Notes

CommodityRuleName

Name of the commodity rule

String

Required

ControlStatus

Sets the control status of the commodity rule

Integer

Optional

Default is 1

Sample request

PUT https://<appserver with domain>/<virtual_directory>/Srd/V2/Projects('SDB')/Disciplines(5020)/Nls(1)/CommodityRules(<CommodityRuleId>)

Where CommodityRuleId is the commodity rule that you want to edit.

{

"CommodityRuleName": "ADD_CRULE",

"ControlStatus": 1,

}

Response

Element

Description

Type

Notes

CommodityRuleId

A unique ID for the commodity rule.

Integer

Project

The project or product group from where the table is retrieved.

String

CommodityRuleName

Name of the commodity rule

String

ControlStatus

Retrieves the control status of the instance.

Sample response

{

"@odata.context":

"https://<appserver with domain>/<virtual_directory>/Srd/V2/$metadata#Projects('SDB')/Disciplines(5020)/Nls(1)/CommodityRules/$entity",

"CommodityRuleId": 5543,

"Project": "SDB",

"CommodityRuleName": "EDIT_CRULE",

"ControlStatus": 1,

}