Delete an agreement - Intergraph Smart Materials - Help - Hexagon

Intergraph Smart Materials Web API Help (10.6)

ft:locale
en-US
Product
Intergraph Smart Materials
Subproduct
Web API
Search by Category
Help
Smart Materials/Smart Reference Data Version
10.6

This API deletes the agreement from a given project in Smart Materials.

You can delete an agreement only if the following conditions are fulfilled.

  • The given user is logged in the same project where the purchase order was created.

  • The purchase order should not be approved and no higher supplements should exist.

Required Privilege: API_AGREEMENT

Headers

Header Name

Description

Required

Values

Authorization

Access token

Required

Bearer <access_token>

Content-Type

Request type format

Required

application/JSON

Body

URL Format: DELETE https://{host}/Smat/V1/Projects(':project')/Disciplines(':discipline')/Nls(':language')/PoHeaders({key})

Specify values for the project, discipline, language, and key parameter in the URL. The project, discipline, and language together, define the project environment and the key parameter defines the Purchase Order header ID (PohId).

Sample Code

DELETE:- http://localhost:50282/smat/v1/Projects('RS')/Disciplines('PIPING')/Nls('English')/PoHeaders(10000138382)

Success Response

Status: 204 No content.