Headers
Header name |
Description |
Required |
Values |
---|---|---|---|
Authorization |
Access token |
Required |
Bearer <access_token> |
Content-Type |
Request type format |
Required |
application/json |
POST 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
https://<appserver with domain>/<virtual_directory>/Srd/V2/Projects('SDB')/Disciplines(5020)/Nls(1)/CommodityRules
{
"CommodityRuleName": "ADD_CRULE",
"Project": "SDB",
"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": "ADD_CRULE",
"ControlStatus": 1,
}