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
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?