[
{
"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
}
]
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
}
]'
{
"code": 200,
"message": "success",
"data": null
}