---
title: "PUT /v1/workflows/{id}/fund-auto-swap"
method: PUT
path: "/v1/workflows/{id}/fund-auto-swap"
---

# PUT /v1/workflows/{id}/fund-auto-swap

`PUT /v1/workflows/{id}/fund-auto-swap`

Update workflow fund auto-swap configuration

## Path parameters

- `id` string, required

## Request body

- union
  - object
  - UpdateFundAutoSwapParams
    - `enabled` boolean
    - `maxSwapAmountUsd` number
    - `mode` string
    - `sources` OrgAutoSwapSource[]
      - `chainId` integer — ChainID is the source chain to sell from.
      - `id` string — ID is a unique identifier for this source (e.g., "src_abc123").
      - `priority` integer — Priority controls order of evaluation (lower = tried first).
      - `slippageBps` integer — SlippageBps is the slippage tolerance in basis points. Default 300 (3%).
      - `tokenAddress` string — TokenAddress is the token to sell. Use "native" for native gas tokens.
      - `tokenDecimals` integer — TokenDecimals is the number of decimal places for the token (e.g. 18 for ETH, 6 for USDC). Stored so the UI can display the human-readable amount without re-fetching on-chain metadata.
      - `walletId` string — WalletID is the org wallet to sell from.

## Response `200`

OK

- UpdateFundAutoSwapSuccessResponse
  - `code` integer
  - `data` WorkflowFundAutoSwapConfig
    - `enabled` boolean
    - `maxSwapAmountUsd` number
    - `mode` string
    - `sources` OrgAutoSwapSource[]
      - `chainId` integer — ChainID is the source chain to sell from.
      - `id` string — ID is a unique identifier for this source (e.g., "src_abc123").
      - `priority` integer — Priority controls order of evaluation (lower = tried first).
      - `slippageBps` integer — SlippageBps is the slippage tolerance in basis points. Default 300 (3%).
      - `tokenAddress` string — TokenAddress is the token to sell. Use "native" for native gas tokens.
      - `tokenDecimals` integer — TokenDecimals is the number of decimal places for the token (e.g. 18 for ETH, 6 for USDC). Stored so the UI can display the human-readable amount without re-fetching on-chain metadata.
      - `walletId` string — WalletID is the org wallet to sell from.
  - `message` string
  - `requestId` string

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.dev/b3os/apis/b3os-workflow-api.md) · [All operations](https://skmtc.dev/b3os/apis/b3os-workflow-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/b3os/b3os-workflow-api/revisions/a8c7af3c66a1/schema)
