| PUT,OPTIONS | /v1/ContactUnsubscribe |
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class ContactUnsubscribeResponse implements IConvertible
{
ResponseStatus? ResponseStatus;
ContactUnsubscribeResponse({this.ResponseStatus});
ContactUnsubscribeResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
return this;
}
Map<String, dynamic> toJson() => {
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
};
getTypeName() => "ContactUnsubscribeResponse";
TypeContext? context = _ctx;
}
class ContactUnsubscribeRequest implements IConvertible
{
String? ContactGuid;
ContactUnsubscribeRequest({this.ContactGuid});
ContactUnsubscribeRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ContactGuid = json['ContactGuid'];
return this;
}
Map<String, dynamic> toJson() => {
'ContactGuid': ContactGuid
};
getTypeName() => "ContactUnsubscribeRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'ContactUnsubscribeResponse': TypeInfo(TypeOf.Class, create:() => ContactUnsubscribeResponse()),
'ContactUnsubscribeRequest': TypeInfo(TypeOf.Class, create:() => ContactUnsubscribeRequest()),
});
Dart ContactUnsubscribeRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /v1/ContactUnsubscribe HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"ContactGuid":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}