# 保存设置

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/admin/setting/save:
    post:
      summary: 保存设置
      deprecated: false
      description: ''
      tags:
        - admin/setting
        - admin/setting
        - alist Copy/admin/setting
      parameters:
        - name: Authorization
          in: header
          description: ''
          required: true
          example: '{{alist_token}}'
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: array
              items:
                type: object
                properties:
                  key:
                    type: string
                    title: 键
                  value:
                    type: string
                    title: 值
                  help:
                    type: string
                    title: 帮助信息
                  type:
                    type: string
                    title: 类型
                    description: string, number, bool, select
                  options:
                    type: string
                    title: 选项
                  group:
                    type: integer
                    title: 分组
                  flag:
                    type: integer
                    title: flag
                    description: 0 = public, 1 = private, 2 = readonly, 3 = deprecated
                required:
                  - key
                x-apifox-orders:
                  - key
                  - value
                  - help
                  - type
                  - options
                  - group
                  - flag
              title: 数组
            example:
              - 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: *
                  Allow: /
                help: ''
                type: text
                options: ''
                group: 1
                flag: 0
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    title: 状态码
                  message:
                    type: string
                    title: 信息
                  data:
                    type: 'null'
                required:
                  - code
                  - message
                  - data
                x-apifox-orders:
                  - code
                  - message
                  - data
              example:
                code: 200
                message: success
                data: null
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: admin/setting
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/6849786/apis/api-327955457-run
components:
  schemas: {}
  securitySchemes: {}
servers: []
security: []

```
