Delete

[POST] .../v1/target/delete

Deletes a target. Use this method to soft-delete a target and its history records. It returns row_affected and should normally be used after the user explicitly chooses to remove the target. The caller must have delete permission for the target owner scope; missing body, invalid id, missing target, denied permissions, concurrent update conflicts and storage errors are returned as HTTP 200 ErrorResult business errors.

Request Parameters

Name Type Required Description
id Int64 Required Record ID.

Request Example

{
  "id": 12
}

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