Delete Purchase Order Line Item Segments

DELETE /api/.../polineitems/{id}/segments

Delete POLI Segments.

Request Information

Parameters
Name Type Required Description
id Integer Yes The unique id assigned to the purchase order line item.
Request Body

A JSON array of purchase order line item segment identifiers represented as numbers.

Property Type Nullable Description
POLineItemSegmentID Integer No POLI segment identifier.
Example
application/json, text/json
[843874, 843627, 843628, 843629, 843630, 843631, 843876, 843875, 843632]

Response Information

True is returned upon success.

Example
application/json, text/json
    true
    

HTTP Response Codes

Code Description
200 OK. Success
400 FAILURE.
  • Bad request
  • Invalid purchase order line item ID
  • Invalid segment ID
404 FAILURE.
  • Purchase order line item not found

Required Permissions

Permission IDs found here.

    CR_AccessAcquisitions_Allow (),
    CR_PurchaseOrders_Access (based on owner ID),
    CR_PurchaseOrders_Delete (0)
    Similar to staff client, additional permission CR_PurchaseOrders_DeleteCancelledOrder (0) was checked for single segment deletion.