- 前端接口
- 后端接口
- 更新接口
- 账户接口
- 皮肤站接口
更新更新规则
PUT
https://sbi.pigeon-server.cn/api/ui/rules/{id}
SyncRule
最后修改时间:2024-10-30 22:33:05
责任人:Half_nothing
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Path 参数
id
number
必需
示例值:
1
Body 参数application/json
basePath
string
跟新文件存储根目录
ruleName
string
更新规则名称
deleteId
array[string]
等待删除的同步文件夹列表
updateRules
object
更新规则
file
array [object {2}]
文件同步规则
folder
array [object {7}]
文件夹同步规则
示例
{
"basePath": "string",
"ruleName": "string",
"deleteId": [
"string"
],
"updateRules": {
"file": [
{
"ruleName": "string",
"clientPath": "string"
}
],
"folder": [
{
"subId": 0,
"ruleName": "string",
"clientPath": "string",
"serverPath": "string",
"mode": "push",
"ignore": [
"string"
],
"delete": [
"string"
]
}
]
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://sbi.pigeon-server.cn/api/ui/rules/1' \
--header 'Content-Type: application/json' \
--data-raw '{
"basePath": "string",
"ruleName": "string",
"deleteId": [
"string"
],
"updateRules": {
"file": [
{
"ruleName": "string",
"clientPath": "string"
}
],
"folder": [
{
"subId": 0,
"ruleName": "string",
"clientPath": "string",
"serverPath": "string",
"mode": "push",
"ignore": [
"string"
],
"delete": [
"string"
]
}
]
}
}'
返回响应
🟢200成功
application/json
Body
status
boolean
接口状态
msg
string | null
详细信息
data
string | integer | boolean | array | object | number | null
应用数据
示例
{
"status": true,
"msg": "string",
"data": "string"
}
修改于 2024-10-30 22:33:05