---
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`

## Request

- Base URL: `https://api.outrival.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.outrival.com/api/v1/campaigns/{campaign_id}/flow-bindings`
- Auth: HTTP bearer

## 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
          - `source_id` 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
          - `source_id` 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

## Changes

- **2026-08-29** `84ff9d4fb546`: 2 info
  - added the new optional request property `flow_graphs/anyOf[subschema #1: FlowGraphsConfig]/by_direction/anyOf[subschema #1: DirectionalFlowGraphSelectors]/inbound/anyOf[subschema #2: PublishedFlowGraphVersionSelector]/source_id`
  - added the new optional request property `flow_graphs/anyOf[subschema #1: FlowGraphsConfig]/by_direction/anyOf[subschema #1: DirectionalFlowGraphSelectors]/outbound/anyOf[subschema #2: PublishedFlowGraphVersionSelector]/source_id`
- **2026-08-13** `5f41cc2923fb`: 1 breaking, 1 info
  - removed the media type `application/json` for the response with the status `422`
  - added the new optional request property `flow_graphs`

[Operation history](https://skmtc.dev/outrival/apis/outrival-api/changes/api/v1/campaigns/:campaign_id/flow-bindings/post.md)

---

[API](https://skmtc.dev/outrival/apis/outrival-api.md) - [All operations](https://skmtc.dev/outrival/apis/outrival-api/llms.txt) - [OpenAPI document](https://skmtc.dev/outrival/apis/outrival-api/revisions/f27d90300b5e?raw)
