[POST] .../v1/doccontractfile/delete
Deletes a contract file link. Use this destructive method to remove an attached file link from a contract and delete the underlying common file through the internal file persistent. The request body must contain the attached contract-file link id, not the common file id and the current request user must have contract-file delete permission. The response returns row_affected for the deleted link and writes a contract file action-log entry. Missing body, invalid id, denied access, unavailable tariff, missing link, no affected rows, database failures and action-log or file-storage deletion failures are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | Int64 | Required | Attached contract file link ID. This is not the file ID. |
Request Example
{
"id": 8101
}
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
}
}