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

# Update Bridge Flow

> Updates fields on a bridge flow record.

### Endpoint

`PUT /api/dapp/bridge/flows/{srcHash}`

Updates fields on a bridge flow record.

### Parameters

| Parameter | Location | Required | Type   | Description              |
| --------- | -------- | -------- | ------ | ------------------------ |
| `srcHash` | path     | Yes      | string | Source transaction hash. |

### Request Body

Send JSON matching the schema shown in the generated API panel.

### Usage Example

```bash theme={null}
curl -X PUT "https://backend-global.gains.trade/api/dapp/bridge/flows/0xSOURCE_HASH"
```

### Response Structure

The generated API panel lists the response schema for status codes: 200, 400, 404, 500. Error responses generally return an `error` or `message` field.


## OpenAPI

````yaml put /api/dapp/bridge/flows/{srcHash}
openapi: 3.0.3
info:
  title: Gains Network Backend API
  version: 1.0.0
  description: >-
    OpenAPI reference for Gains Network backend-global and public chain-specific
    trading backend endpoints.
servers:
  - url: https://backend-global.gains.trade
    description: Backend Global API
  - url: https://backend-arbitrum.gains.trade
    description: Arbitrum trading backend
  - url: https://backend-base.gains.trade
    description: Base trading backend
  - url: https://backend-polygon.gains.trade
    description: Polygon trading backend
  - url: https://backend-sepolia.gains.trade
    description: Arbitrum Sepolia trading backend
  - url: http://localhost:3002
    description: Local backend-global development server
security: []
tags:
  - name: Health
  - name: Stats
  - name: APR
  - name: Trading History
  - name: Personal Trading History
  - name: Leaderboard
  - name: Holding Rates
  - name: Contests
  - name: Dapp
  - name: Wallet
  - name: Circle
  - name: Solana
  - name: Transak
  - name: Bridge
  - name: Campaigns
  - name: VIP
  - name: Notifications
  - name: Referrals
  - name: Trading Backend
  - name: Legacy Contests
  - name: Rewards
paths:
  /api/dapp/bridge/flows/{srcHash}:
    put:
      tags:
        - Bridge
      summary: Update Bridge Flow
      description: Updates fields on a bridge flow record.
      operationId: put_update-bridge-flow
      parameters:
        - name: srcHash
          in: path
          required: true
          schema:
            type: string
          description: Source transaction hash.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BridgeFlowResponse'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Flow not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    BridgeFlowResponse:
      type: object
      properties:
        success:
          type: boolean
        data:
          type: object
          additionalProperties: true
    Error:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
        success:
          type: boolean
      additionalProperties: true

````