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