[POST] .../v1/productionoperation/delete
Deletes production operations. Use this destructive method to delete one or more produced item rows from a production document before the parent document is posted. The request body is an object containing an ids array, not a root JSON array; ids must contain 1 through 250 positive operation IDs. Production must be enabled, the first operation's parent document must be unposted, not deleted and locked by the current user and all requested operation IDs must belong to that same document. The response returns row_affected and ids for deleted rows and the current request user must have production operation delete permission; missing body, invalid ids, disabled production, denied access, membership mismatches, lock conflicts, posted documents, missing operations, no affected rows and storage failures are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| ids | Array of Int64 | Required | Production operation IDs. |
Request Example
{
"ids": [
8401
]
}
Response Parameters
| Name | Type | Description |
|---|---|---|
| ok | Boolean | Indicates whether the request completed successfully. |
| result | Update | Update operation result. |
Response Example
{
"ok": true,
"result": {
"row_affected": 1,
"ids": [
8401
]
}
}