Campaigns
Delete a campaign
Campaigns
Delete a campaign
Delete a campaign
DELETE
/
v1
/
campaigns
curl --request DELETE \
--url https://api.useplunk.com/v1/campaigns \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: <content-type>' \
--data '{
"id": "<string>"
}'
{
"id": "45fb8871-c028-414e-a351-ce7fafaf00f1",
"subject": "My new campaign!",
"body": "This is my Plunk campaign.",
"status": "DRAFT",
"delivered": null,
"style": "PLUNK",
"projectId": "191f2aab-224b-4a23-9772-3c536440af09",
"createdAt": "2024-08-10T19:53:28.207Z",
"updatedAt": "2024-08-10T19:53:28.207Z"
}
Body
The ID of the campaign to delete
Headers
application/json
Response
{
"id": "45fb8871-c028-414e-a351-ce7fafaf00f1",
"subject": "My new campaign!",
"body": "This is my Plunk campaign.",
"status": "DRAFT",
"delivered": null,
"style": "PLUNK",
"projectId": "191f2aab-224b-4a23-9772-3c536440af09",
"createdAt": "2024-08-10T19:53:28.207Z",
"updatedAt": "2024-08-10T19:53:28.207Z"
}
curl --request DELETE \
--url https://api.useplunk.com/v1/campaigns \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: <content-type>' \
--data '{
"id": "<string>"
}'
{
"id": "45fb8871-c028-414e-a351-ce7fafaf00f1",
"subject": "My new campaign!",
"body": "This is my Plunk campaign.",
"status": "DRAFT",
"delivered": null,
"style": "PLUNK",
"projectId": "191f2aab-224b-4a23-9772-3c536440af09",
"createdAt": "2024-08-10T19:53:28.207Z",
"updatedAt": "2024-08-10T19:53:28.207Z"
}