删除主题接口[批量]

  • 接口说明: 删除主题[批量]
  • 接口地址: /api/categories/batch/{ids}
  • 请求方式: DELETE

请求参数

请求示例

  1. /api/categories/batch/21,22,23

返回说明

  • http 状态码 200

返回结果

  1. data 被删除的分类列表
  2. meta 出现异常的分类列表

返回示例

  1. {
  2. "data": [
  3. {
  4. "type": "categories",
  5. "id": "1",
  6. "attributes": {
  7. "name": "UIC-Franc",
  8. "description": "Savings Account Principal maximized",
  9. "icon": "",
  10. "sort": 124,
  11. "property": 0,
  12. "thread_count": 0,
  13. "ip": "0",
  14. "created_at": "2019-10-21T00:00:00+08:00",
  15. "updated_at": "2019-11-30T11:08:14+08:00"
  16. }
  17. },
  18. {
  19. "type": "categories",
  20. "id": "2",
  21. "attributes": {
  22. "name": "circuit",
  23. "description": "Credit Card Account silver",
  24. "icon": "",
  25. "sort": 43,
  26. "property": 0,
  27. "thread_count": 0,
  28. "ip": "127.0.0.1",
  29. "created_at": "2019-11-22T10:32:21+08:00",
  30. "updated_at": "2019-12-02T20:14:40+08:00"
  31. }
  32. }
  33. ],
  34. "meta": [
  35. {
  36. "id": "3",
  37. "message": "model_not_found"
  38. }
  39. ]
  40. }