curl --request POST \
--url https://{subdomain}.nudj.cx/api/v2/admin/campaigns \
--header 'Content-Type: application/json' \
--header 'x-api-token: <api-key>' \
--data '
{
"name": "<string>",
"startDate": "<string>",
"endDate": "<string>",
"status": "archived"
}
'{
"id": "<string>",
"organisationId": "<string>",
"name": "<string>",
"startDate": "<string>",
"endDate": "<string>",
"status": "archived",
"createdAt": "<string>",
"updatedAt": "<string>",
"createdBy": "<string>",
"updatedBy": "<string>"
}Create a new campaign.
curl --request POST \
--url https://{subdomain}.nudj.cx/api/v2/admin/campaigns \
--header 'Content-Type: application/json' \
--header 'x-api-token: <api-key>' \
--data '
{
"name": "<string>",
"startDate": "<string>",
"endDate": "<string>",
"status": "archived"
}
'{
"id": "<string>",
"organisationId": "<string>",
"name": "<string>",
"startDate": "<string>",
"endDate": "<string>",
"status": "archived",
"createdAt": "<string>",
"updatedAt": "<string>",
"createdBy": "<string>",
"updatedBy": "<string>"
}The input required to create a campaign
Successful response
A campaign
The id of the campaign
The id of the organisation the campaign belongs to
The name of the campaign
The start date of the campaign
The end date of the campaign
The status of the campaign
archived, draft, expired, live, scheduled The date the campaign was created
The date the campaign was last updated
The user who created this campaign
The user who last updated this campaign
Was this page helpful?