视频稿件编辑
https://member.bilibili.com/arcopen/fn/archive/edit
开放能力 / 视频稿件管理
调用该接口可完成稿件编辑 仅允许编辑稿件中的描述信息部分,比如title,desc等。不允许更改视频本身 若需要修改视频本身,请重新投稿 稿件编辑后,需重新进行审核 注意:请求body参数需要将所有字段传递过来,不需要修改的字段传原值。建议编辑前使用查询接口获取原值**
body 参数
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| resource_id | string | 是 | 稿件唯一ID |
| title | string | 是 | 稿件标题 |
| cover | string | 否 | 封面地址,由上传封面接口得到 |
| tid | int | 是 | 分区id,由获取分区信息接口得到 |
| no_reprint | int | 否 | 是否禁止转载,0-不禁止,1-禁止转载。默认0 |
| desc | string | 否 | 视频描述 |
响应字段
| 名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| resource_id | string | 否 | 稿件唯一ID |
调用方式
javascript
// 让 AI 直接调(需要开放平台凭据)
bili_api_call { "ref": "19", "query": {…}, "body": {…} }
// 只看将要发出的请求(不需要凭据)
bili_api_call { "ref": "19", "dryRun": true }
// 生成完整调用代码
bili_codegen { "ref": "19", "lang": "python" }官方请求示例
bash
curl --location --request POST 'https://member.bilibili.com/arcopen/fn/archive/edit' \
--header 'Accept: application/json' \
--header 'Access-Token: a24e56a0fc0093668bca0f3a15410ea2' \
--header 'Authorization: 950a03adb287904a93bcffd7e4abf57a4c2ef0608bf1f95f3bcb2c278ae532be' \
--header 'X-Bili-Accesskeyid: 93a0f774fae84e6c' \
--header 'X-Bili-Content-Md5: d41d8cd98f00b204e9800998ecf8427e' \
--header 'X-Bili-Signature-Method: HMAC-SHA256' \
--header 'X-Bili-Signature-Nonce: 1730185575446751000' \
--header 'X-Bili-Signature-Version: 2.0' \
--header 'X-Bili-Timestamp: 1730185575' \
--header 'Content-Type: application/json' \
--header 'Host: member.bilibili.com' \
--header 'Connection: keep-alive' \
--data-raw '{
"resource_id":"BV1MW421X7gM",
"title": "openplat测试稿件-hehehe",
"cover": "http://ua.hdslb.com/bfs/archive/ba65af14b78cb7f92194887b1e6a77422dddf43c.png",
"tid": 21,
"desc": "test1",
"no_reprint": 1
}'原始文档:019_视频稿件编辑.md(2895 字节)。用 bili_docs_get { "ref": "19" } 读全文,或用 bili_api_spec { "ref": "19" } 取结构化规格。