---
title: "Update Campaign Flow Bindings"
method: POST
path: "/api/v1/campaigns/{campaign_id}/flow-bindings"
tags: ["flow-graphs"]
---

# Update Campaign Flow Bindings

`POST /api/v1/campaigns/{campaign_id}/flow-bindings`

## Path parameters

- `campaign_id` string, required

## Request body

- UpdateCampaignBindingsRequest
  - `bindings` object
  - `flow_graphs` FlowGraphsConfig
    - `enabled` boolean, nullable
    - `by_direction` DirectionalFlowGraphSelectors
      - `inbound` union
        - RuntimeFlowGraphSelector
          - `kind` 'runtime'
          - `source_id` string, required
        - PublishedFlowGraphVersionSelector
          - `graph_id` string, required
          - `version_id` string, required
          - `version_hash` string, required
          - `graph_name` string, nullable
          - `version` integer, nullable
          - `published_at` string, nullable
          - `kind` 'published'
        - EmptyFlowGraphSelector
          - `kind` 'none'
      - `outbound` union
        - RuntimeFlowGraphSelector
          - `kind` 'runtime'
          - `source_id` string, required
        - PublishedFlowGraphVersionSelector
          - `graph_id` string, required
          - `version_id` string, required
          - `version_hash` string, required
          - `graph_name` string, nullable
          - `version` integer, nullable
          - `published_at` string, nullable
          - `kind` 'published'
        - EmptyFlowGraphSelector
          - `kind` 'none'
  - `pipecat_flows_enabled` boolean, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — FlowGraph enablement fields do not match

---

[API](https://skmtc.net/outrival/apis/fastapi.md) · [All operations](https://skmtc.net/outrival/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/outrival/fastapi/revisions/08db493d22ae/schema)
