CampaignsUpdate campaign

Update campaign

curl -X PUT "https://api.flameup.ai/api/v1/campaigns/example_string" \
  -H "Content-Type: application/json" \
  -H "X-Workspace-ID: example_string" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "name": "John Doe",
  "trigger_config": {
    "event_names": [
      "John Doe"
    ],
    "filters": [
      {
        "field": "example_string",
        "operator": "eq",
        "value": "null"
      }
    ],
    "properties": {},
    "debounce": 3.14,
    "delay_minutes": 3.14,
    "max_per_user": 42,
    "first_occurrence": true
  },
  "status": "draft"
}'
{}
PUT
/campaigns/{campaignId}
PUT
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

A Firebase ID token from a signed-in dashboard session. Endpoints using this scheme are NOT callable with an API key and will reject one.

A Firebase ID token from a signed-in dashboard session. Endpoints using this scheme are NOT callable with an API key and will reject one.
Content-Typestring
Required

The media type of the request body

Options: application/json
header
X-Workspace-IDstring
Required

The workspace to operate on, for dashboard routes that carry no workspace_id path segment. A workspace_id query parameter is accepted as an alternative; either way the value is checked against the signed-in user's workspace membership before it is trusted.

trigger_configstring

Shape depends on the campaign's trigger_type — see EventTriggerConfig, WebhookTriggerConfig and ScheduleTriggerConfig. Activation-time rules apply when the update sets status: active.

statusstring

The settable statuses. scheduled and failed are set by the system and rejected here.

Options: draft, active, paused, archived, completed
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. A Firebase ID token from a signed-in dashboard session. Endpoints using this scheme are NOT callable with an API key and will reject one.

Path Parameters

Headers

X-Workspace-IDstring
Required

The workspace to operate on, for dashboard routes that carry no workspace_id path segment. A workspace_id query parameter is accepted as an alternative; either way the value is checked against the signed-in user's workspace membership before it is trusted.

Body

application/json
trigger_configstring

Shape depends on the campaign's trigger_type — see EventTriggerConfig, WebhookTriggerConfig and ScheduleTriggerConfig. Activation-time rules apply when the update sets status: active.

statusstring

The settable statuses. scheduled and failed are set by the system and rejected here.

Allowed values:draftactivepausedarchivedcompleted

Responses

Campaign updated