Delete

[POST] .../v1/doccontract/delete

Deletes a contract. Use this destructive method only after the contract has been marked for deletion with DocContract/DeleteMark. The request body must contain id, the target row must have deleted_mark = true and deleted = false and the current request user must have contract delete permission. The response returns row_affected for the hard-deletion state change when it succeeds. Missing body, invalid id, denied access, unavailable tariff, an unmarked contract, no affected rows, storage errors and webhook failures are returned as HTTP 200 ErrorResult.

Request Parameters

Name Type Required Description
id Int64 Required Contract ID.

Request Example

{
  "id": 9101
}

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