Delete

[POST] .../v1/doccontractfile/delete

Deletes a contract file link. Remove an attached file link from a contract and delete the underlying common file. 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. Missing body, invalid id, denied access, unavailable tariff, missing link, no affected rows, storage errors and file deletion failures are returned as HTTP 200 ErrorResult.

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
  }
}