| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- # 由 openapi/scripts/generate.php 生成,请勿手改;补充写到 overrides/v2-terms-import.yaml
- get:
- summary: 'import terms-import'
- tags:
- - terms-import
- operationId: get_api_v2_terms_import
- description: |
- 已被取代:`view=channel` → `POST /v3/channels/{channel}/terms/imports`,`view=studio` → `POST /v3/studios/{studio}/terms/imports`,
- 直接上传 xlsx(multipart,不再经附件临时区、不再用 GET 写入)。按列名读取(v2 导出的表格也能用),部分成功、逐行给出跳过原因;
- word / tag 不能改,带 etag 列时校验;「有 id、word 为空就删除」不再支持。保留仅为 dashboard-v4 兼容,待 v4 下线后删除。
- parameters:
- -
- name: view
- in: query
- schema:
- type: string
- enum:
- - channel
- - studio
- -
- name: id
- in: query
- schema:
- type: string
- -
- name: name
- in: query
- schema:
- type: string
- -
- name: filename
- in: query
- schema:
- type: string
- responses:
- 200:
- description: '成功。业务失败时 HTTP 仍可能为 200,以 ok 字段为准。'
- content:
- application/json:
- schema:
- type: object
- properties:
- ok:
- type: boolean
- message:
- type: string
- data:
- type: object
- 401:
- $ref: '../../main.yaml#/components/responses/Unauthorized'
- 422:
- $ref: '../../main.yaml#/components/responses/ValidationError'
- deprecated: true
|