更新 Audio Native 项目

更新指定 Audio Native 项目的内容。

路径参数

project_idstring必需

要使用的项目 ID。可使用 列出项目 端点列出所有可用项目。

请求头

xi-api-keystring可选

请求

This endpoint expects a multipart form containing an optional file.
filefile可选

包含文章内容的 txt 或 HTML 输入文件。HTML 应采用以下格式:‘<html><body><div><p>你的内容</p><h5>更多内容</h5><p>更多内容</p></div></body></html>’

auto_convertboolean可选默认为 false

是否自动将项目转换为音频。

auto_publishboolean可选默认为 false

转换后是否自动发布新的项目快照。

响应

成功响应

project_idstring

项目的 ID。

convertingboolean

项目当前是否正在转换。

publishingboolean

项目当前是否正在发布。

html_snippetstring

用于嵌入 Audio Native 播放器的 HTML 代码片段。

错误

422
Unprocessable Entity Error