| Requires any of the roles: | Client, Admin, Partner |
| GET | /campaigns |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
import com.google.gson.annotations.*;
import com.google.gson.reflect.*;
public class dtos
{
@DataContract
public static class CampaignsLookup
{
@DataMember(Order=2)
public Integer TenantsId = null;
@DataMember(Order=3)
public String Name = null;
@DataMember(Order=4)
public String Description = null;
@DataMember(Order=5)
public Long AvatarsId = null;
@DataMember(Order=6)
public Long SchedulesId = null;
@DataMember(Order=7)
public Integer MessageTonesId = null;
@DataMember(Order=8)
public Long StatusCodesId = null;
public Integer getTenantsId() { return TenantsId; }
public CampaignsLookup setTenantsId(Integer value) { this.TenantsId = value; return this; }
public String getName() { return Name; }
public CampaignsLookup setName(String value) { this.Name = value; return this; }
public String getDescription() { return Description; }
public CampaignsLookup setDescription(String value) { this.Description = value; return this; }
public Long getAvatarsId() { return AvatarsId; }
public CampaignsLookup setAvatarsId(Long value) { this.AvatarsId = value; return this; }
public Long getSchedulesId() { return SchedulesId; }
public CampaignsLookup setSchedulesId(Long value) { this.SchedulesId = value; return this; }
public Integer getMessageTonesId() { return MessageTonesId; }
public CampaignsLookup setMessageTonesId(Integer value) { this.MessageTonesId = value; return this; }
public Long getStatusCodesId() { return StatusCodesId; }
public CampaignsLookup setStatusCodesId(Long value) { this.StatusCodesId = value; return this; }
}
}
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.
GET /campaigns HTTP/1.1 Host: duengageapi.uat.scadsoftware.com Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
[
{
TenantsId: 0,
Name: String,
Description: String,
AvatarsId: 0,
SchedulesId: 0,
MessageTonesId: 0,
StatusCodesId: 0,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}
]