最近更新时间:2023.02.01 14:10:46
首次发布时间:2023.02.01 14:10:46
更新直播模版上下架或删除状态。
以下请求参数列表仅列出了该接口的部分公共参数,完整公共参数列表见公共请求参数。
参数 | 类型 | 是否必选 | 描述 |
---|---|---|---|
Action | String | 是 | 接口名称 |
Version | String | 是 | 接口版本。直播当前 API 的版本为 2020-06-01 |
参数 | 类型 | 是否必选 | 描述 |
---|---|---|---|
TemplateId | Int | 是 | 直播模版 ID。您可以通过调用 GetAccountTemplateAPI 接口查询 ID |
Status | Int | 是 | 模版状态
|
参数 | 类型 | 描述 |
---|---|---|
Status | Bool | 是否更新成功
|
POST http://livesaas.volcengineapi.com/?Action=UpdateAccountTemplateStatusAPI&Version=2020-06-01 { "TemplateId":1724367076931614, "Status":3 }
{ "ResponseMetadata": { "RequestId": "20230115233554395A95AB969C1BA439BB", "Action": "UpdateAccountTemplateStatusAPI", "Version": "2020-06-01", "Service": "livesaas", "Region": "cn-north-1", "SystemTime": 1673796954 }, "Result": { "Status": true } }
{ "ResponseMetadata": { "RequestId": "2023012817001358B0888A378675F3209D", "Action": "UpdateAccountTemplateStatusAPI", "Version": "2020-06-01", "Service": "livesaas", "Region": "cn-north-1", "Error": { "Code": "InvalidParameter.StatusError", "Message": "The specified parameter Status is invalid." }, "SystemTime": 1674896413 }, "Result": null }
下表提供了该接口特有的错误码,公共错误码请参见公共错误码文档。
状态码 | 错误码 | 错误信息 | 说明 |
---|---|---|---|
400 | InvalidParameter.TemplateIdNotFound | The specified parameter TemplateId is invalid. | 直播间模版 ID 不符合规范,请修改后重试 |
400 | InvalidParameter.StatusError | The specified parameter Status is invalid. | 模版状态不符合规范,请修改后重试 |
500 | InternalError | The request has failed due to an unknown error. | 请求处理过程中出现了未知错误,请联系技术支持获取帮助 |