| Requires any of the roles: | Client, Admin, Partner |
| GET POST | /campaign/communications/start/{ScheduleInstancesId} | Get Campaign Communications |
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:collection';
class StartCampaignCommunications implements IConvertible
{
// @DataMember(Order=1)
int? ScheduleInstancesId;
// @DataMember(Order=2)
int? NoOfRecords;
// @DataMember(Order=3)
List<int>? Channels;
StartCampaignCommunications({this.ScheduleInstancesId,this.NoOfRecords,this.Channels});
StartCampaignCommunications.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ScheduleInstancesId = json['ScheduleInstancesId'];
NoOfRecords = json['NoOfRecords'];
Channels = JsonConverters.fromJson(json['Channels'],'List<int>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'ScheduleInstancesId': ScheduleInstancesId,
'NoOfRecords': NoOfRecords,
'Channels': JsonConverters.toJson(Channels,'List<int>',context!)
};
getTypeName() => "StartCampaignCommunications";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'duengageapi.uat.scadsoftware.com', types: <String, TypeInfo> {
'StartCampaignCommunications': TypeInfo(TypeOf.Class, create:() => StartCampaignCommunications()),
});
Dart StartCampaignCommunications 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 /campaign/communications/start/{ScheduleInstancesId} HTTP/1.1
Host: duengageapi.uat.scadsoftware.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
ScheduleInstancesId: 0,
NoOfRecords: 0,
Channels:
[
0
]
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length False