# 更新存储

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/admin/storage/update:
    post:
      summary: 更新存储
      deprecated: false
      description: ''
      tags:
        - admin/storage
        - admin/storage
        - alist Copy/admin/storage
      parameters:
        - name: Authorization
          in: header
          description: token
          required: true
          example: '{{alist_token}}'
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: string
                  title: ID
                mount_path:
                  type: string
                  title: 挂载路径
                order:
                  type: integer
                  title: 排序
                driver:
                  type: string
                  title: 驱动
                remark:
                  type: string
                  title: 备注名
                cache_expiration:
                  type: integer
                  title: 缓存过期时间
                status:
                  type: string
                web_proxy:
                  type: boolean
                  title: web代理
                webdav_policy:
                  type: string
                  title: webdav策略
                down_proxy_url:
                  type: string
                  title: 下载代理
                order_by:
                  type: string
                  title: 排序方式
                extract_folder:
                  type: string
                  title: 提取目录
                order_direction:
                  type: string
                  title: 排序方向
                addition:
                  type: string
                  title: 额外信息
                enable_sign:
                  type: string
                  title: 启用签名
              required:
                - mount_path
                - web_proxy
                - extract_folder
                - driver
                - addition
                - order_by
                - order_direction
                - status
                - enable_sign
              x-apifox-orders:
                - id
                - mount_path
                - order
                - driver
                - remark
                - cache_expiration
                - status
                - web_proxy
                - webdav_policy
                - down_proxy_url
                - order_by
                - extract_folder
                - order_direction
                - addition
                - enable_sign
            example:
              mount_path: /lll
              order: 0
              remark: ''
              cache_expiration: 30
              web_proxy: false
              webdav_policy: native_proxy
              down_proxy_url: ''
              extract_folder: front
              enable_sign: false
              driver: Local
              order_by: name
              order_direction: asc
              addition: >-
                {"root_folder_path":"/","thumbnail":false,"thumb_cache_folder":"","show_hidden":true,"mkdir_perm":"777"}
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    description: 状态码
                    title: 状态码
                  message:
                    type: string
                    description: 信息
                    title: 信息
                  data:
                    type: object
                    properties:
                      id:
                        type: integer
                    required:
                      - id
                    description: data
                    title: data
                    x-apifox-orders:
                      - id
                required:
                  - code
                  - message
                  - data
                x-apifox-orders:
                  - code
                  - message
                  - data
              example:
                code: 200
                message: success
                data:
                  id: 7
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: admin/storage
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/6849786/apis/api-327955445-run
components:
  schemas: {}
  securitySchemes: {}
servers: []
security: []

```
