| Requires any of the roles: | Client, Admin, Partner |
| POST | /batch_data_errors |
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:collection';
class BatchDataErrorsAddResponse implements IConvertible
{
// @DataMember(Order=2)
int? BatchId;
// @DataMember(Order=3)
String? Type;
// @DataMember(Order=4)
String? String;
// @DataMember(Order=5)
int? Row;
// @DataMember(Order=7)
ResponseStatus? ResponseStatus;
BatchDataErrorsAddResponse({this.BatchId,this.Type,this.String,this.Row,this.ResponseStatus});
BatchDataErrorsAddResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
BatchId = json['BatchId'];
Type = json['Type'];
String = json['String'];
Row = json['Row'];
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
return this;
}
Map<String, dynamic> toJson() => {
'BatchId': BatchId,
'Type': Type,
'String': String,
'Row': Row,
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
};
getTypeName() => "BatchDataErrorsAddResponse";
TypeContext? context = _ctx;
}
// @DataContract
class BatchDataErrorsAdd implements IConvertible
{
// @DataMember(Order=2)
int? BatchId;
// @DataMember(Order=3)
String? Type;
// @DataMember(Order=4)
String? String;
// @DataMember(Order=5)
int? Row;
BatchDataErrorsAdd({this.BatchId,this.Type,this.String,this.Row});
BatchDataErrorsAdd.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
BatchId = json['BatchId'];
Type = json['Type'];
String = json['String'];
Row = json['Row'];
return this;
}
Map<String, dynamic> toJson() => {
'BatchId': BatchId,
'Type': Type,
'String': String,
'Row': Row
};
getTypeName() => "BatchDataErrorsAdd";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'duengageapi.uat.scadsoftware.com', types: <String, TypeInfo> {
'BatchDataErrorsAddResponse': TypeInfo(TypeOf.Class, create:() => BatchDataErrorsAddResponse()),
'BatchDataErrorsAdd': TypeInfo(TypeOf.Class, create:() => BatchDataErrorsAdd()),
});
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 /batch_data_errors HTTP/1.1
Host: duengageapi.uat.scadsoftware.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
BatchId: 0,
Type: String,
String: String,
Row: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
BatchId: 0,
Type: String,
String: String,
Row: 0,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}