v2-terms-import.yaml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # 由 openapi/scripts/generate.php 生成,请勿手改;补充写到 overrides/v2-terms-import.yaml
  2. get:
  3. summary: 'import terms-import'
  4. tags:
  5. - terms-import
  6. operationId: get_api_v2_terms_import
  7. description: |
  8. 已被取代:`view=channel` → `POST /v3/channels/{channel}/terms/imports`,`view=studio` → `POST /v3/studios/{studio}/terms/imports`,
  9. 直接上传 xlsx(multipart,不再经附件临时区、不再用 GET 写入)。按列名读取(v2 导出的表格也能用),部分成功、逐行给出跳过原因;
  10. word / tag 不能改,带 etag 列时校验;「有 id、word 为空就删除」不再支持。保留仅为 dashboard-v4 兼容,待 v4 下线后删除。
  11. parameters:
  12. -
  13. name: view
  14. in: query
  15. schema:
  16. type: string
  17. enum:
  18. - channel
  19. - studio
  20. -
  21. name: id
  22. in: query
  23. schema:
  24. type: string
  25. -
  26. name: name
  27. in: query
  28. schema:
  29. type: string
  30. -
  31. name: filename
  32. in: query
  33. schema:
  34. type: string
  35. responses:
  36. 200:
  37. description: '成功。业务失败时 HTTP 仍可能为 200,以 ok 字段为准。'
  38. content:
  39. application/json:
  40. schema:
  41. type: object
  42. properties:
  43. ok:
  44. type: boolean
  45. message:
  46. type: string
  47. data:
  48. type: object
  49. 401:
  50. $ref: '../../main.yaml#/components/responses/Unauthorized'
  51. 422:
  52. $ref: '../../main.yaml#/components/responses/ValidationError'
  53. deprecated: true