**POST** 将文件丢到垃圾桶。

参数:

参数 说明
itemIds 欲丢到垃圾桶文件 ID


范例代码:

  1. var data = {
  2. "itemIds": ["KWLKGQW2HTHC7", "KWLOGLTX0FGHF"]
  3. };
  4. var requestOptions = {
  5. method: 'POST',
  6. body: JSON.stringify(data),
  7. redirect: 'follow'
  8. };
  9. fetch("http://localhost:41595/api/item/moveToTrash", requestOptions)
  10. .then(response => response.json())
  11. .then(result => console.log(result))
  12. .catch(error => console.log('error', error));

返回结果:

json { "status": "success" }s