Create Campaign
Create Campaign
Create a new data collection campaign within a dataset
POST
Create Campaign
Create Campaign
Create a new campaign to collect KPI data from assigned data owners for a specific reporting period. Optionally link existing dataset assignments as recipients.Creating a campaign does not send invite emails. Use Send Invites after creating the campaign to notify recipients.
Request
Headers
string
required
Your API key for authenticationExample:
sk_live_1234567890abcdefstring
required
Your organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faPath Parameters
string
required
UUID of the parent dataset
Body Parameters
string
required
Campaign name (1–255 characters)Example:
"Q1 2025 Water Survey"string
required
Start of the reporting period (ISO date)Example:
"2025-01-01"string
required
End of the reporting period. Must be after
period_start.Example: "2025-03-31"string
required
Submission deadline. Must be after
period_start.Example: "2025-04-15"array[string]
UUIDs of dataset assignments to include as campaign recipients. Omit to add recipients later via Add Recipient.
Response
Returns the created campaign with its campaign-assignments (HTTP 201). The response uses the same shape as Get Campaign.string
Campaign UUID.
string
UUID of the parent dataset.
string
Campaign display name.
string
Data collection period start date (ISO 8601 date).
string
Data collection period end date (ISO 8601 date).
string
Deadline for recipients to submit responses (ISO 8601 date).
string | null
Timestamp when the campaign was locked.
null for newly created campaigns.string | null
UUID of the user who created the campaign.
datetime
Timestamp when the campaign was created
datetime | null
Timestamp when the campaign was last updated
array[object]
Recipients linked to this campaign. Empty if no
assignment_ids were provided.Example
Successful Response
Common Errors
401 Unauthorized
Cause: Missing or invalid API key403 Forbidden
Cause: The authenticated user is not a member of the organization422 Validation Error
Cause:period_end is not after period_start
Related Endpoints
Send Invites
Send invite emails to recipients
List Campaigns
View all campaigns