调用 UpdateQuickCommentContent 接口,更新指定直播间的快捷评论内容。
下表仅列出该接口特有的请求参数和部分公共参数。更多信息详见公共参数。
| 参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
| Action | String | 是 | UpdateQuickCommentContent | 接口名称。当前 API 的名称为 UpdateQuickCommentContent。 |
| Version | String | 是 | 2023-08-01 | 接口版本。当前 API 的版本为 2023-08-01。 |
| 参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
ActivityId | Integer | 是 |
| 直播间的 ID。您可以通过 ListActivityAPI 接口查询 ID。 说明 使用子账号调用接口时,确保该直播间对子账号可见。有关如何配置子账号的可见范围,详见子账号管理。 |
QuickComments | Array of String | 否 |
| 快捷评论列表。若不传该字段,则会清空现有快捷评论内容。 说明
|
| 参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| Status | Boolean | true | 是否成功更新快捷评论内容。成功返回 true。 |
POST https://livesaas.volcengineapi.com/?Action=UpdateQuickCommentContent&Version=2023-08-01 { "ActivityId": 182*******2131, "QuickComments": [ "什么时候发货", "闭眼冲" ] }
{ "ResponseMetadata": { "RequestId": "20230604110420****100232280022D31", "Action": "UpdateQuickCommentContent", "Version": "2023-08-01", "Service": "livesaas", "Region": "cn-north-1", "SystemTime": 1775728865 }, "Result": { "Status": true } }
下表提供了该接口特有的错误码,公共错误码请参见公共错误码和错误码文档。
| 状态码 | 错误码 | 错误信息 | 说明 |
|---|---|---|---|
| 400 | InvalidParameter.ContentIsIllegal | The specified parameter Content is invalid. | 快捷评论内容存在违规风险,请检查并修改内容。 |