Update campaign
PATCH
https://api.flownally.com/v1/campaigns/{campaignId}Updates the supplied fields of a draft campaign; other campaigns cannot be edited. Send an
empty string for segmentId or inboxId, or null for content, to clear it.
If-Match is optional; when supplied, it must contain the current campaign ETag.
Authorization
Required scopes
- campaign:update
Allowed roles
- owner
- admin
Update a draft campaign.
Parameters
- Name
campaignId- Type
- path · string
- required
Campaign ID.- Name
If-Match- Type
- header · string
Optional. The campaign's currentETag. A stale value returns 412contacts_campaign_revision_mismatch.
Body parameters
Send a application/json body. The body is required.
- Name
name- Type
- string
- Name
segmentId- Type
- string
- Name
inboxId- Type
- string
- Name
content- Type
- OutboundMessageContent | null
Responses
- 200Campaign updatedapplication/json
- 412The supplied ETag is stale.application/json
- defaultErrorapplication/json
Related schemas
- ProblemDetails
- FieldViolation
- Window
- OutboundMessageContent
- TextMessageContent
- TextContent
- MediaMessageContent
- Content
- TemplateMessageContent
- WhatsAppTemplateContent
- TemplateComponent
- TemplateParameter
- Parameter
- CurrencyParameter
- DateTimeParameter
- RichMessageContent
- RichMessage
- Card
- CardHeader
- CardBody
- CardFooter
- CardAction
- WhatsAppFlowAction
- WhatsAppMessageContent
- WhatsAppContent
- WhatsAppRequestContactInfoContent
- CampaignStatus
- Campaign
- UpdateCampaignRequest
Generated from the API spec.