Skip to main content
POST
Lock Campaign

Lock Campaign

Lock a campaign, preventing any further value submissions from recipients. Locked campaigns keep all existing data but reject new or edited values.

Request

Headers

string
required
Your API key for authenticationExample: sk_live_1234567890abcdef
string
required
Your organization UUIDExample: a8315ef3-dd50-43f8-b7ce-d839e68d51fa

Path Parameters

string
required
UUID of the parent dataset
string
required
UUID of the campaign to lock

Response

Returns the campaign with locked_at set to the current timestamp (HTTP 200).
string
Campaign UUID.
string
Campaign display name.
string
Timestamp when the campaign was locked (ISO 8601). Now set.
string
Data collection period start date.
string
Data collection period end date.
string
Submission deadline.
datetime
Creation timestamp (ISO 8601).
string | null
Last update timestamp (ISO 8601).

Example

Successful Response

Common Errors

401 Unauthorized

Cause: Missing or invalid API key

403 Forbidden

Cause: The authenticated user is not a member of the organization

404 Not Found

Cause: Campaign not found

Unlock Campaign

Re-open for submissions

Get Campaign

View campaign status