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

# Update Threshold

> Updates the signing threshold for a Smart Account



## OpenAPI

````yaml POST /api/v0/smart_account/transaction/threshold/update
openapi: 3.0.3
info:
  title: Squads Smart Account API
  version: 0.1.0
  description: >
    The Squads Smart Account API enables creation and management of Smart
    Accounts on Solana. It provides endpoints for creating smart accounts,
    managing signers, thresholds, and spending limits.
servers:
  - url: https://developer-api.squads.so
    description: Production server
security:
  - BearerAuth: []
tags:
  - name: Smart Account
    description: Endpoints for Smart Account management
paths:
  /api/v0/smart_account/transaction/threshold/update:
    parameters:
      - $ref: '#/components/parameters/NetworkParam'
    post:
      tags:
        - Smart Account
      summary: Update Threshold
      description: Updates the signing threshold for a Smart Account
      operationId: updateThreshold
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateThresholdRequest'
      responses:
        '200':
          description: Threshold successfully updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateThresholdResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  parameters:
    NetworkParam:
      name: x-squads-network
      in: header
      schema:
        type: string
        enum:
          - devnet
          - mainnet
        default: mainnet
      required: false
      description: >
        Specifies which Solana network to use. Defaults to 'mainnet' if not
        provided.

        Valid values are 'devnet' or 'mainnet'.
  schemas:
    UpdateThresholdRequest:
      type: object
      required:
        - smart_account_address
        - threshold
        - transaction_signers
        - fee_config
      properties:
        smart_account_address:
          type: string
          pattern: ^[1-9A-HJ-NP-Za-km-z]{32,44}$
          description: The address of the Smart Account
        threshold:
          type: integer
          minimum: 1
          description: The new threshold value
        transaction_signers:
          type: array
          items:
            type: string
            pattern: ^[1-9A-HJ-NP-Za-km-z]{32,44}$
          description: List of addresses that will sign this transaction
        fee_config:
          $ref: '#/components/schemas/FeeConfig'
    UpdateThresholdResponse:
      type: object
      required:
        - transaction
        - fee
      properties:
        transaction:
          type: string
          description: The transaction encoded in base64
        fee:
          $ref: '#/components/schemas/Fee'
    FeeConfig:
      type: object
      required:
        - currency
        - payer_address
      properties:
        currency:
          type: string
          enum:
            - sol
            - usdc
          description: The currency to pay fees in
        payer_address:
          type: string
          pattern: ^[1-9A-HJ-NP-Za-km-z]{32,44}$
          description: The address that will pay the fees
    Fee:
      type: object
      required:
        - amount
        - amount_decimal
        - currency
        - sol_equivalent
      properties:
        amount:
          type: string
          format: uint64
          description: The fee amount in base units
        amount_decimal:
          type: string
          description: The fee amount as a decimal string
        currency:
          type: string
          description: The currency of the fee (e.g. 'sol', 'usdc')
        sol_equivalent:
          $ref: '#/components/schemas/SolEquivalent'
    SolEquivalent:
      type: object
      required:
        - amount
        - amount_decimal
      properties:
        amount:
          type: string
          format: uint64
          description: The amount in lamports (SOL base units)
        amount_decimal:
          type: string
          description: The amount as a decimal string in SOL
  responses:
    BadRequest:
      description: Bad request
      content:
        application/json:
          schema:
            type: object
            required:
              - error
            properties:
              error:
                type: string
    InternalError:
      description: Internal server error
      content:
        application/json:
          schema:
            type: object
            required:
              - error
            properties:
              error:
                type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: |
        Authorization header using the Bearer scheme.
        Example: "Authorization: Bearer {token}"

````