API > campaign > Delete Campaign

DELETE https://app.replyup.com/api/campaign/{id}
Delete particular the campaign
Default Parameter
api_key (string) Your api key
Parameters
id(string) *
200 returns

successful operation

id (string) The identifier of the campaign.
campaignName (string) Name of campaign
fromName (string) The name the campaign was sent from.
fromEmail (string) The email address the campaign was sent from.
subject (string) The subject of the campaign.
templateId (string) Which template is assigned either there will be a emailSequenceId or templateId
emailSequenceId (string) Which is sequence is assigned either there will be a emailSequenceId or templateId
listIds (array) The ids of the lists the campaign was sent to.
executionDate (string (YYYY-MM-DD)) When should the campaign get executed date
executionTime (string) At what time should the campaign get executed (HH:MM)
status: (string) 1 = (Process the campaign), 3 = (Save as draft)
type (string) 1 = (Regular campaign), 2 = (Automated campaign)
intervalType (string) When the campaign needs to be processed ("immediately") ("hours") ("days")
workflowTimeInterval (number) Interval time (if interval type is hours or days, workflowTimeInterval can be number of hours or days
status (number) 1 = (Active), 0 = (Complete)
timezone (string) Timezone in which you want your campaign to be executed, default time is 10:00 in (UTC)
400 returns

Invalid status value

success (boolean) It defines if response is success, or failure
statusCode (string) Error code
message (string) A description of the error.
Example request
"https://app.replyup.com/campaign/1"
Example response
          
            {"id":1,"listId":null,"templateId":125,"userId":5,"emailSequenceId":null,"campaignName":"Report@1","fromName":"Ajinkya Kathe","fromEmail":"info@foundercontent.com","subject":"Report Testing 1 ","previewText":"","executionDate":"","executionTime":"","scheduledDateAndTime":null,"type":"1","workflowTimeInterval":"0","status":1,"createdAt":"2022-02-09T09:12:15.000Z","updatedAt":"2022-02-09T09:12:15.000Z"}