[POST] .../v1/docproduction/delete
Deletes production document. Use this destructive method to delete a production document that should no longer participate in production workflows. The request body must contain a positive document id and the document must be locked by the current user, unposted and not already deleted. Production must be enabled and the current request user must have production document delete permission; the response returns row_affected for the document marked deleted by the persistent layer. Missing body, invalid id, disabled production, denied access, unavailable tariff, lock conflicts, already posted documents, no affected rows, database failures or webhook failures are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | Int64 | Required | Record ID. |
Request Example
{
"id": 7401
}
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
}
}