| Requires any of the roles: | Client, Admin, Partner |
| GET POST | /campaign/runscheduleinstance/{Id} | Run Campaign Schedule Instance |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class RunCampaignScheduleInstance
{
@DataMember(Order=1)
@Validate(Validator="NotNull")
public Long Id = null;
@DataMember(Order=2)
@Validate(Validator="NotNull")
public Long CampaignsId = null;
@DataMember(Order=3)
public Integer NoOfRecords = null;
public Long getId() { return Id; }
public RunCampaignScheduleInstance setId(Long value) { this.Id = value; return this; }
public Long getCampaignsId() { return CampaignsId; }
public RunCampaignScheduleInstance setCampaignsId(Long value) { this.CampaignsId = value; return this; }
public Integer getNoOfRecords() { return NoOfRecords; }
public RunCampaignScheduleInstance setNoOfRecords(Integer value) { this.NoOfRecords = value; return this; }
}
public static class RunCampaignScheduleInstanceResponse
{
public String Status = null;
public ResponseStatus ResponseStatus = null;
public String getStatus() { return Status; }
public RunCampaignScheduleInstanceResponse setStatus(String value) { this.Status = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public RunCampaignScheduleInstanceResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
}
Java RunCampaignScheduleInstance DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /campaign/runscheduleinstance/{Id} HTTP/1.1
Host: duengageapi.uat.scadsoftware.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"Id":0,"CampaignsId":0,"NoOfRecords":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"Status":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}