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

# Update Wallet

> Update wallet configuration.



## OpenAPI

````yaml /api-reference/openapi.json put /v1/agents/{agent_id}/wallet
openapi: 3.1.0
info:
  description: >-
    Modular and extensible framework for building AI agents. This API requires
    JWT Bearer token authentication for most endpoints. Include your JWT token
    in the Authorization header. Public endpoints include /, /health, /docs,
    /redoc, and /openapi.json.
  title: AgentArea API
  version: 0.1.0
servers: []
security:
  - bearer: []
paths:
  /v1/agents/{agent_id}/wallet:
    put:
      tags:
        - v1
        - protected
        - wallet
      summary: Update Wallet
      description: Update wallet configuration.
      operationId: update_wallet_v1_agents__agent_id__wallet_put
      parameters:
        - in: path
          name: agent_id
          required: true
          schema:
            format: uuid
            title: Agent Id
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateWalletRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WalletResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    UpdateWalletRequest:
      properties:
        credentials:
          anyOf:
            - $ref: '#/components/schemas/WalletCredentialsSchema'
            - type: 'null'
        mpp_config:
          anyOf:
            - $ref: '#/components/schemas/MPPConfigSchema'
            - type: 'null'
        service_budget_period:
          anyOf:
            - type: string
            - type: 'null'
          title: Service Budget Period
        service_budget_usd:
          anyOf:
            - type: number
            - type: 'null'
          title: Service Budget Usd
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
        wallet_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Wallet Type
        x402_config:
          anyOf:
            - $ref: '#/components/schemas/X402ConfigSchema'
            - type: 'null'
      title: UpdateWalletRequest
      type: object
    WalletResponse:
      properties:
        agent_id:
          title: Agent Id
          type: string
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
        has_credentials:
          default: false
          title: Has Credentials
          type: boolean
        id:
          title: Id
          type: string
        mpp_config:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Mpp Config
        service_budget_period:
          title: Service Budget Period
          type: string
        service_budget_usd:
          title: Service Budget Usd
          type: number
        status:
          title: Status
          type: string
        updated_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Updated At
        wallet_type:
          title: Wallet Type
          type: string
        x402_config:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: X402 Config
      required:
        - id
        - agent_id
        - wallet_type
        - service_budget_usd
        - service_budget_period
        - status
      title: WalletResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    WalletCredentialsSchema:
      properties:
        mpp_tempo_key:
          anyOf:
            - type: string
            - type: 'null'
          title: Mpp Tempo Key
        x402_private_key:
          anyOf:
            - type: string
            - type: 'null'
          title: X402 Private Key
      title: WalletCredentialsSchema
      type: object
    MPPConfigSchema:
      properties:
        chain_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: Chain Id
        currency:
          anyOf:
            - type: string
            - type: 'null'
          title: Currency
        decimals:
          default: 6
          title: Decimals
          type: integer
        payment_method_types:
          items:
            type: string
          title: Payment Method Types
          type: array
        recipient:
          anyOf:
            - type: string
            - type: 'null'
          title: Recipient
        rpc_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Rpc Url
        session_budget_usd:
          default: 10
          title: Session Budget Usd
          type: number
        stripe_profile_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Stripe Profile Id
      title: MPPConfigSchema
      type: object
    X402ConfigSchema:
      properties:
        facilitator_url:
          default: https://x402.org/facilitator
          title: Facilitator Url
          type: string
        network:
          default: eip155:8453
          title: Network
          type: string
        scheme:
          default: exact
          title: Scheme
          type: string
        signer_type:
          default: evm
          title: Signer Type
          type: string
      title: X402ConfigSchema
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    bearer:
      bearerFormat: JWT
      description: JWT Bearer token for authentication
      scheme: bearer
      type: http
    HTTPBearer:
      scheme: bearer
      type: http

````