| POST | /v1/forms/submissions/bulk/preview |
|---|
import 'package:servicestack/servicestack.dart';
class FormSubmissionBulkResponse implements IConvertible
{
int? Change;
int? Already;
int? Cannot;
List<String>? Lines = [];
String? StageLabel;
String? AgentName;
ResponseStatus? ResponseStatus;
FormSubmissionBulkResponse({this.Change,this.Already,this.Cannot,this.Lines,this.StageLabel,this.AgentName,this.ResponseStatus});
FormSubmissionBulkResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Change = json['Change'];
Already = json['Already'];
Cannot = json['Cannot'];
Lines = JsonConverters.fromJson(json['Lines'],'List<String>',context!);
StageLabel = json['StageLabel'];
AgentName = json['AgentName'];
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Change': Change,
'Already': Already,
'Cannot': Cannot,
'Lines': JsonConverters.toJson(Lines,'List<String>',context!),
'StageLabel': StageLabel,
'AgentName': AgentName,
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
};
getTypeName() => "FormSubmissionBulkResponse";
TypeContext? context = _ctx;
}
class FormSubmissionBulkPreviewRequest implements IConvertible
{
String? Action;
List<String>? SubmissionUIDs = [];
String? Stage;
int? AgentId;
FormSubmissionBulkPreviewRequest({this.Action,this.SubmissionUIDs,this.Stage,this.AgentId});
FormSubmissionBulkPreviewRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Action = json['Action'];
SubmissionUIDs = JsonConverters.fromJson(json['SubmissionUIDs'],'List<String>',context!);
Stage = json['Stage'];
AgentId = json['AgentId'];
return this;
}
Map<String, dynamic> toJson() => {
'Action': Action,
'SubmissionUIDs': JsonConverters.toJson(SubmissionUIDs,'List<String>',context!),
'Stage': Stage,
'AgentId': AgentId
};
getTypeName() => "FormSubmissionBulkPreviewRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'FormSubmissionBulkResponse': TypeInfo(TypeOf.Class, create:() => FormSubmissionBulkResponse()),
'FormSubmissionBulkPreviewRequest': TypeInfo(TypeOf.Class, create:() => FormSubmissionBulkPreviewRequest()),
});
Dart FormSubmissionBulkPreviewRequest 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.
POST /v1/forms/submissions/bulk/preview HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"Action":"String","SubmissionUIDs":["00000000000000000000000000000000"],"Stage":"String","AgentId":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"Change":0,"Already":0,"Cannot":0,"Lines":["String"],"StageLabel":"String","AgentName":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}