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

> ## Agent Instructions
> To quote bridges and swaps, look up chains and tokens, or track Relay transactions from an agent, use the Relay MCP server: `npx -y @relayprotocol/relay-mcp`. It is read-only and does not sign or broadcast transactions. Setup: https://docs.relay.link/resources/developing-with-ai.md
> For Relay Protocol's trust model, security architecture, and audits, see https://docs.relay.link/references/protocol/security.md. For address screening, see https://docs.relay.link/security/transaction-screening.md.

# Update Deposit Address

> Enable or disable a deposit address, or change its fixed rate and fee sponsorship

[What are deposit addresses?](https://docs.relay.link/features/deposit-addresses.md)


## OpenAPI

````yaml post /deposit-addresses/{depositAddressId}/update/v2
openapi: 3.0.3
info:
  title: Cross-chain solver
  version: 1.0.0
servers:
  - url: https://api.relay.link
    description: Mainnet API
  - url: https://api.testnets.relay.link
    description: Testnet API
security: []
paths:
  /deposit-addresses/{depositAddressId}/update/v2:
    post:
      description: >-
        Update a Deposit Address V2 that the caller's integrator owns. Omitted
        fields keep their current value. New pricing applies to deposits quoted
        after the update. A first deposit that matches the original quote keeps
        that quote until it expires.
      parameters:
        - schema:
            type: string
            pattern: ^\S(?:.*\S)?$
          in: path
          name: depositAddressId
          required: true
        - schema:
            type: string
          in: header
          name: x-api-key
          required: false
          description: API key for authentication.
        - schema:
            type: string
          in: header
          name: x-dev-portal-key
          required: false
          description: Developer portal key for authentication. It cannot change pricing.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              minProperties: 1
              properties:
                isEnabled:
                  type: boolean
                  description: >-
                    Whether the address accepts new deposits. A one-time address
                    cannot be enabled after it receives a deposit.
                fixedRate:
                  type: string
                  nullable: true
                  description: >-
                    Fixed rate as 'input:output', for example '1:1'. Use null to
                    remove it. Only the API key that created the address can
                    change it.
                subsidizeFees:
                  type: boolean
                  description: >-
                    Whether the API key's sponsoring wallet pays the fees. Only
                    the API key that created the address can change it.
                sponsoredFeeComponents:
                  type: array
                  items:
                    type: string
                    enum:
                      - execution
                      - swap
                      - relay
                      - app
                      - rent
                  minItems: 1
                  uniqueItems: true
                  description: >-
                    Fee components to sponsor. Requires subsidizeFees: true. If
                    omitted, the address keeps its current components.
                maxSubsidizationAmount:
                  type: string
                  nullable: true
                  pattern: ^\d+$
                  description: >-
                    The max subsidization amount in USDC decimal format, e.g
                    1000000 = $1. Use null to remove the cap. Requires
                    subsidizeFees: true. If omitted, the address keeps its
                    current cap.
      responses:
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: false
                required:
                  - message
                properties:
                  message:
                    type: string
                  errorCode:
                    type: string
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: false
                required:
                  - message
                properties:
                  message:
                    type: string
                  errorCode:
                    type: string
        '403':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: false
                required:
                  - message
                properties:
                  message:
                    type: string
                  errorCode:
                    type: string
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: false
                required:
                  - message
                properties:
                  message:
                    type: string
                  errorCode:
                    type: string
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: false
                required:
                  - message
                properties:
                  message:
                    type: string
                  errorCode:
                    type: string
        '503':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: false
                required:
                  - message
                properties:
                  message:
                    type: string
                  errorCode:
                    type: string

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.