Sample URI request
To delete a commodity part in the project:
DELETE
https://<appserver with domain>/<virtual_directory>/Srd/V2//Projects('SDB')/Disciplines(5020)Nls(1)/CommodityGroups(8693)/CommodityParts(17603)
To delete a commodity group for a given commodity group ID:
DELETE
https://<appserver with domain>/<virtual_directory>/Srd/V2/Projects('SDB')/Disciplines(5020)/Nls(1)/ CommodityGroups (<CommodityGroupId>)/CommodityParts(<CommodityPartId >)
Headers
|
Header name |
Description |
Required |
Values |
|---|---|---|---|
|
Authorization |
Access token |
Required |
Bearer <access_token> |
|
Content-Type |
Request type format |
Required |
application/json |
Get URI Parameter
|
Parameter |
Description |
Type |
Required |
|---|---|---|---|
|
Commodity Group ID |
The Commodity Group ID which you want to delete |
Integer |
Required |
|
Commodity Part ID |
The Commodity Part ID which you want to delete |
Integer |
Required |
Sample Response
A Successful deletion will return a response with status as 204 and an unsuccessful deletion will return a response with status as 409 (Conflict). If the commodity group is invalid, it will return a response with status as 404 Not found.
{
"error": {
"code": "MAR-44059",
"message": "The record cannot be deleted",
"details": [
{
"code": "MAR-10188",
"target": "PartId",
"message": "Deletion failed because dependent data exists in M_COMMODITY_CODES screen"
}
]
}
}