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

# Update payout settings
POST /api/apps/:app_id/payout/settings



## OpenAPI

````yaml /openapi.yaml post /api/apps/{app_id}/payout/settings
openapi: 3.1.0
info:
  title: OnDB API
  description: Monetize anything
  license:
    name: ''
  version: 4.0.0
servers: []
security: []
tags:
  - name: Health
    description: Health check and system status
  - name: Applications
    description: Application management
  - name: Billing
    description: Billing information and usage
  - name: Pricing
    description: Pricing information and quotes
  - name: X402 Payment Protocol
    description: Payment verification and settlement
  - name: Data Storage
    description: Store data to Celestia blockchain
  - name: Data Query
    description: Query and retrieve data
  - name: Collections
    description: Collection management
  - name: Indexes
    description: Index management and relations
  - name: Retention
    description: Data retention policies
  - name: Materialized Views
    description: Materialized view management
  - name: Predefined Queries
    description: Create and execute predefined queries
  - name: View Query
    description: Query materialized view data
  - name: Wallet
    description: App wallet management
  - name: Tasks
    description: Task tracking and status
  - name: Transactions
    description: Transaction status
  - name: Authorization
    description: Authorization grant management
  - name: API Keys
    description: API key management
  - name: Encryption
    description: Encryption settings and configuration
  - name: Payout
    description: Payout settings and history
  - name: API Collections
    description: API collection management
paths:
  /api/apps/{app_id}/payout/settings:
    post:
      tags:
        - Payout
      summary: |-
        Update payout settings
        POST /api/apps/:app_id/payout/settings
      operationId: update_payout_settings
      parameters:
        - name: app_id
          in: path
          description: Application ID
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdatePayoutSettingsRequest'
        required: true
      responses:
        '200':
          description: Payout settings updated successfully
          content:
            application/json:
              schema: {}
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '404':
          description: App not found
        '500':
          description: Internal server error
      security:
        - api_key: []
components:
  schemas:
    UpdatePayoutSettingsRequest:
      type: object
      description: Request body for updating payout settings
      properties:
        auto_payout_enabled:
          type:
            - boolean
            - 'null'
          description: Enable automatic payouts when threshold is reached
        locked_balance:
          type:
            - integer
            - 'null'
          format: int64
          description: |-
            Locked balance that cannot be withdrawn (in utia)
            Can only be set once during initial configuration or increased
          minimum: 0
        min_payout:
          type:
            - integer
            - 'null'
          format: int64
          description: Minimum payout amount (in utia)
          minimum: 0
        payout_destination:
          type:
            - string
            - 'null'
          description: Destination address for payouts
        payout_threshold:
          type:
            - integer
            - 'null'
          format: int64
          description: Balance threshold that triggers auto-payout (in utia)
          minimum: 0

````