curl --request PATCH \
--url https://{subdomain}.nudj.cx/api/v2/admin/campaigns/{id} \
--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>"
}Update an existing campaign.
curl --request PATCH \
--url https://{subdomain}.nudj.cx/api/v2/admin/campaigns/{id} \
--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 id of the campaign to update
^[0-9a-fA-F]{24}$Successful response
A campaign
The id of the campaign
^[0-9a-fA-F]{24}$The id of the organisation the campaign belongs to
^[0-9a-fA-F]{24}$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
^[0-9a-fA-F]{24}$The user who last updated this campaign
^[0-9a-fA-F]{24}$Was this page helpful?