DeleteMark

[POST] .../v1/item/deletemark

Toggles the item deletion mark by changing the deleted_mark value to the opposite value. Use this method to mark a catalog item for deletion or to clear that mark before the item is permanently deleted. It toggles deleted_mark for the item identified by id and returns row_affected; use Item/Delete after this method only when the marked item must be removed. The caller must have item delete-mark permission and provide a positive id; invalid request data, denied access, protected item state and persistent errors are returned as HTTP 200 ErrorResult.

Request Parameters

Name Type Required Description
id Int64 Required Item ID.

Request Example

{
  "id": 1
}

Response Parameters

Name Type Description
ok Boolean Indicates whether the request completed successfully.
result Update Update operation result.

Response Example

{
  "ok": true,
  "result": {
    "ids": [
      null
    ],
    "row_affected": 1
  }
}