| Requires any of the roles: | Client, Admin, Partner |
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class UploadCampaignSegments extends ArrayList<BatchCampaignSegmentsRequest>
{
}
public static class BatchCampaignSegmentsRequest
{
public Long Id = null;
public Long CampaignsId = null;
public Long SegmentsId = null;
public Boolean IsEnabled = null;
public Long getId() { return Id; }
public BatchCampaignSegmentsRequest setId(Long value) { this.Id = value; return this; }
public Long getCampaignsId() { return CampaignsId; }
public BatchCampaignSegmentsRequest setCampaignsId(Long value) { this.CampaignsId = value; return this; }
public Long getSegmentsId() { return SegmentsId; }
public BatchCampaignSegmentsRequest setSegmentsId(Long value) { this.SegmentsId = value; return this; }
public Boolean getIsEnabled() { return IsEnabled; }
public BatchCampaignSegmentsRequest setIsEnabled(Boolean value) { this.IsEnabled = value; return this; }
}
public static class BatchCampaignSegmentsResponse
{
public Integer Records = null;
public ResponseStatus ResponseStatus = null;
public Integer getRecords() { return Records; }
public BatchCampaignSegmentsResponse setRecords(Integer value) { this.Records = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public BatchCampaignSegmentsResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
}
Java UploadCampaignSegments DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /jsv/reply/UploadCampaignSegments HTTP/1.1
Host: duengageapi.uat.scadsoftware.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
[
]
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Records: 0,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}