Delete

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

Deletes a contract. Deletion is available only when deleted_mark is true; use DocContract/DeleteMark to mark a contract for deletion. 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, database failures and action-log or webhook failures are returned as HTTP 200 ErrorResult business errors.

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