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
PUT
https://<appserver with domain>/<virtual_directory>/Srd/V2/Projects('SDB')/Disciplines(5020)/Nls(1)/CommodityGroups(5004)/CommodityParts(5452)/CommodityCodes(87860)/CommodityCodeDetails(CommodityId=<commoidtyId>,SeqId= <seqId>)
{
"TableDetailId": 5606,
"UsedForCodeBuilding": "Y",
"ControlStatus": 1
}
Put URI Parameter
|
Parameter |
Description |
Type |
Required |
|---|---|---|---|
|
CommodityId |
A unique ID for the commodity code. |
Integer |
Required |
|
SeqID |
The sequence ID of the commodity code detail which you want to delete. |
Integer |
Required |
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": 4,
"TableDetailId": 5606,
"UsedForCodeBuilding": "Y",
"ControlStatus": 1
}