- auth
- fs
- public
- admin
保存设置
正式环境
正式环境
POST
/api/admin/setting/save
alist Copy/admin/setting
最后修改时间:2024-05-17 12:16:17
责任人:未设置
请求参数
Header 参数
Authorization
string
必需
示例值:
{{alist_token}}
Body 参数application/json
array of:
key
string
键
value
string
值
help
string
帮助信息
type
string
类型
options
string
选项
group
integer
分组
flag
integer
flag
示例
[
{
"key": "version",
"value": "v3.25.1",
"help": "",
"type": "string",
"options": "",
"group": 1,
"flag": 2
},
{
"key": "site_title",
"value": "AList",
"help": "",
"type": "string",
"options": "",
"group": 1,
"flag": 0
},
{
"key": "announcement",
"value": "",
"help": "",
"type": "text",
"options": "",
"group": 1,
"flag": 0
},
{
"key": "pagination_type",
"value": "all",
"help": "",
"type": "select",
"options": "all,pagination,load_more,auto_load_more",
"group": 1,
"flag": 0
},
{
"key": "default_page_size",
"value": "30",
"help": "",
"type": "number",
"options": "",
"group": 1,
"flag": 0
},
{
"key": "allow_indexed",
"value": "false",
"help": "",
"type": "bool",
"options": "",
"group": 1,
"flag": 0
},
{
"key": "allow_mounted",
"value": "false",
"help": "",
"type": "bool",
"options": "",
"group": 1,
"flag": 0
},
{
"key": "robots_txt",
"value": "User-agent: *\nAllow: /",
"help": "",
"type": "text",
"options": "",
"group": 1,
"flag": 0
}
]
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://prod-cn.your-api-server.com/api/admin/setting/save' \
--header 'Authorization: {{alist_token}}' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"key": "version",
"value": "v3.25.1",
"help": "",
"type": "string",
"options": "",
"group": 1,
"flag": 2
},
{
"key": "site_title",
"value": "AList",
"help": "",
"type": "string",
"options": "",
"group": 1,
"flag": 0
},
{
"key": "announcement",
"value": "",
"help": "",
"type": "text",
"options": "",
"group": 1,
"flag": 0
},
{
"key": "pagination_type",
"value": "all",
"help": "",
"type": "select",
"options": "all,pagination,load_more,auto_load_more",
"group": 1,
"flag": 0
},
{
"key": "default_page_size",
"value": "30",
"help": "",
"type": "number",
"options": "",
"group": 1,
"flag": 0
},
{
"key": "allow_indexed",
"value": "false",
"help": "",
"type": "bool",
"options": "",
"group": 1,
"flag": 0
},
{
"key": "allow_mounted",
"value": "false",
"help": "",
"type": "bool",
"options": "",
"group": 1,
"flag": 0
},
{
"key": "robots_txt",
"value": "User-agent: *\nAllow: /",
"help": "",
"type": "text",
"options": "",
"group": 1,
"flag": 0
}
]'
返回响应
🟢200成功
application/json
Body
code
integer
状态码
message
string
信息
data
null
必需
示例
{
"code": 200,
"message": "success",
"data": null
}
修改于 2024-05-17 12:16:17