This API deletes a line item from an existing requisition of a project in Smart Materials.
You cannot delete a line item of a requisition that is either approved or used in
other modules.
Required Privilege: API_REQ
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 http://localhost:57576/smat/v1/Projects(':project')/Disciplines(':discipline')/Nls(':language')/Requisitions({key1})/LineItems({key2})
Specify the values for the project, discipline, language, and the key parameter in the URL. The project, discipline, and language together, define the project environment. The key parameter (key1) refers to the requisition ID to which the line item belongs and key2 refers to the line item ID which you want to delete.
Sample Code
DELETE http://localhost:57576/smat/v1/Projects('RS')/Disciplines('PIPING')/Nls('English')/Requisitions(10000136853)/LineItems(10000816248)
Success Response
Status : 204 No Content.