Delete Commodity Group - Intergraph Smart Reference Data - Customization & Programming - Hexagon

SRD REST API

ft:locale
en-US
Product
Intergraph Smart Reference Data
Search by Category
Customization & Programming
Smart Materials/Smart Reference Data Version
10.6

Sample URI request

To delete a commodity group in the project:

DELETE

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

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>)

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

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": "GroupId",

"message": "Deletion failed because dependent data exists in M_PARTS,M_PART_TO_SHORT_CODES screen"

}

]

}

}