接口请求域名: waf.intl.tencentcloudapi.com 。
用户修改自定义词库
默认接口请求频率限制:20次/秒。
以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见 公共请求参数。
| 参数名称 | 必选 | 类型 | 描述 |
|---|---|---|---|
| Action | 是 | String | 公共参数,本接口取值:ModifyLLMKeywordLibrary。 |
| Version | 是 | String | 公共参数,本接口取值:2018-01-25。 |
| Region | 是 | String | 公共参数,详见产品支持的 地域列表,本接口仅支持其中的: ap-guangzhou, ap-seoul, ap-singapore 。 |
| LibList.N | 是 | Array of LLMKeywordLibrary | 新增的关键词库列表 |
| 参数名称 | 类型 | 描述 |
|---|---|---|
| RuleIds | Array of String | 成功创建的列表id |
| RequestId | String | 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 |
用户修改自定义词库内容
POST / HTTP/1.1
Host: waf.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyLLMKeywordLibrary
<公共请求参数>
{
"LibList": [
{
"Name": "lib1",
"Description": "this is lib 1",
"Type": "custom",
"Keywords": [
"word1"
]
}
]
}
{
"Response": {
"RequestId": "feca6493-7c4a-4103-a868-cc394d72ae8e",
"RuleIds": [
"5200027919"
]
}
}
云 API 3.0 提供了配套的开发工具集(SDK),支持多种编程语言,能更方便的调用 API。
该接口暂无业务逻辑相关的错误码,其他错误码详见 公共错误码。
文档反馈