| Required role: | Admin |
| GET | /SurveyCampaign |
|---|
export class SurveyCampaign
{
public id?: number;
// @StringLength(200)
public name?: string;
// @StringLength(16)
public status?: string;
// @StringLength(300)
public subject?: string;
// @StringLength(2147483647)
public bodyHtml?: string;
// @StringLength(300)
public reminderSubject?: string;
// @StringLength(2147483647)
public reminderBodyHtml?: string;
// @StringLength(320)
public fromEmail?: string;
// @StringLength(200)
public fromName?: string;
// @StringLength(8)
public language?: string;
public reminderAfterDays?: number;
public maxReminders?: number;
public createdAt?: string;
public sentAt?: string;
public closedAt?: string;
public constructor(init?: Partial<SurveyCampaign>) { (Object as any).assign(this, init); }
}
export class SurveyCampaignListResult
{
public items?: SurveyCampaign[];
public statusCode?: number;
public message?: string;
public constructor(init?: Partial<SurveyCampaignListResult>) { (Object as any).assign(this, init); }
}
export class SurveyCampaignListRequest
{
public status?: string;
public constructor(init?: Partial<SurveyCampaignListRequest>) { (Object as any).assign(this, init); }
}
TypeScript SurveyCampaignListRequest 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.
GET /SurveyCampaign HTTP/1.1 Host: stubbur-app.azurewebsites.net Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
items:
[
{
id: 0,
name: String,
status: String,
subject: String,
bodyHtml: String,
reminderSubject: String,
reminderBodyHtml: String,
fromEmail: String,
fromName: String,
language: String,
reminderAfterDays: 0,
maxReminders: 0,
createdAt: 0001-01-01,
sentAt: 0001-01-01,
closedAt: 0001-01-01
}
],
statusCode: 0,
message: String
}