保存过滤规则
保存关键词或条件过滤规则,比如自动屏蔽某些书名。
| 请求方式 | GET/POST |
|---|---|
| 接口路径 | /api/filterSet/save |
| Content-Type | application/json |
| 鉴权 | X-Nideshop-Token |
请求体字段
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
ruleType | 对象 | 是 | - |
data | String | 是 | - |
shopType | 对象 | 是 | - |
curl 调用
curl -s 'https://www.8shu8.com/api/filterSet/save' \
-H 'X-Nideshop-Token: YOUR_LOGIN_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"ruleType": "...",
"data": "string",
"shopType": "..."
}'
响应示例
{
"code": 200,
"message": "操作成功",
"success": true,
"data": true
}