> ## Documentation Index
> Fetch the complete documentation index at: https://docs.yieldo.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Admin Toggle Vault

> Upsert an admin state row. Pass any subset of {enabled, deposits_enabled,
withdrawals_enabled} — unspecified flags are left untouched.



## OpenAPI

````yaml https://api.yieldo.xyz/openapi.json patch /v1/admin/vaults/{vault_id}
openapi: 3.1.0
info:
  title: Yieldo API
  description: Cross-chain deposit aggregator for ERC-4626 and custom yield vaults
  version: 1.0.0
servers:
  - url: https://api.yieldo.xyz
    description: Production
security: []
paths:
  /v1/admin/vaults/{vault_id}:
    patch:
      tags:
        - admin
      summary: Admin Toggle Vault
      description: >-
        Upsert an admin state row. Pass any subset of {enabled,
        deposits_enabled,

        withdrawals_enabled} — unspecified flags are left untouched.
      operationId: admin_toggle_vault_v1_admin_vaults__vault_id__patch
      parameters:
        - name: vault_id
          in: path
          required: true
          schema:
            type: string
            title: Vault Id
        - name: authorization
          in: header
          required: false
          schema:
            type: string
            default: ''
            title: Authorization
        - name: x-admin-address
          in: header
          required: false
          schema:
            type: string
            default: ''
            title: X-Admin-Address
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VaultToggleRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    VaultToggleRequest:
      properties:
        enabled:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Enabled
        deposits_enabled:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Deposits Enabled
        withdrawals_enabled:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Withdrawals Enabled
      type: object
      title: VaultToggleRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````