| Requires any of the roles: | Client, Admin, Partner |
| POST | /campaign/pause/{PublicAccessGuid} | Pause Campaign |
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:collection';
class PauseCampaignResponse implements IConvertible
{
bool? Success;
ResponseStatus? ResponseStatus;
PauseCampaignResponse({this.Success,this.ResponseStatus});
PauseCampaignResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Success = json['Success'];
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Success': Success,
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
};
getTypeName() => "PauseCampaignResponse";
TypeContext? context = _ctx;
}
class PauseCampaign implements IConvertible
{
// @DataMember(Order=2)
// @Validate(Validator="NotNull")
String? PublicAccessGuid;
PauseCampaign({this.PublicAccessGuid});
PauseCampaign.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
PublicAccessGuid = json['PublicAccessGuid'];
return this;
}
Map<String, dynamic> toJson() => {
'PublicAccessGuid': PublicAccessGuid
};
getTypeName() => "PauseCampaign";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'duengageapi.uat.scadsoftware.com', types: <String, TypeInfo> {
'PauseCampaignResponse': TypeInfo(TypeOf.Class, create:() => PauseCampaignResponse()),
'PauseCampaign': TypeInfo(TypeOf.Class, create:() => PauseCampaign()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /campaign/pause/{PublicAccessGuid} HTTP/1.1
Host: duengageapi.uat.scadsoftware.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"PublicAccessGuid":"00000000000000000000000000000000"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Success":false,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}