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 |
---|---|---|---|---|
IdentCode |
Name of the new ident |
String |
Required |
|
UnitSystemName |
The unit system which is applied. |
String |
Required |
Available unit systems are Metric, IMP/MET and so on. |
NPS1, NPS2, SCH1 and SCH2 |
Ident values as input to be unique. |
Integer |
Optional |
Default value is 0. |
ControlStatus |
Control status of the instance |
Integer |
Optional |
Default value is 1 |
Sample request
POST
https://<appserver with domain>/<virtual_directory>/Srd/V2/Projects('SDB')/Disciplines(5020)/Nls(1)/CommodityGroups(5008)/CommodityParts(5481)/CommodityCodes(78386)/Idents
{
"IdentCode": "ADD_IDENT",
"UnitSystemName":"IMP/MET",
"NPS1":"1",
"NPS2":"1",
"SCH1":"S-10",
"SCH2":"S-10"
}
Response
Parameter |
Description |
Type |
Notes |
---|---|---|---|
IdentId |
A unique ID for the Ident. |
Integer |
|
IdentCode |
The ident code identifying an item |
Integer |
|
ControlStatus |
Retrieves the control status of the instance |
Integer |
|
CommodityId |
A unique ID for the commodity code. |
Integer |
|
Project |
Retrieves the project details for the selected ident. |
String |
|
UnitSystemId |
Unit System ID |
Integer |
|
UnitSystemName |
The unit system which is applied |
String |
|
NPS1, NPS2, SCH1 and SCH2 |
Ident values as input |
String |
Sample response
{
"@odata.context":
"https://<appserver with domain>/<virtual_directory>/Srd/V2/$metadata#Projects('SDB')/Disciplines(5020)/Nls(1)/CommodityGroups(5008)/CommodityParts(5481)/CommodityCodes(78386)/Idents/$entity",
"IdentId": 19611722,
"Project": "SDB",
"IdentCode": "ADD_IDENT",
"CommodityId": 78386,
"NPS1": "1",
"NPS2": "1",
"SCH1": "S-10",
"SCH2": "S-10",
"ControlStatus": 1,
"UnitSystemId": 5001,
"UnitSystemName": "IMP/MET"
}