digitaluapi

<back to all web services

BatchDataErrorsEdit

Requires Authentication
Requires any of the roles:Client, Admin, Partner
The following routes are available for this service:
PUT/batch_data_errors/{Id}
import 'package:servicestack/servicestack.dart';
import 'dart:collection';

class BatchDataErrorsEditResponse implements IConvertible
{
    // @DataMember(Order=1)
    int? Id;

    // @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;

    BatchDataErrorsEditResponse({this.Id,this.BatchId,this.Type,this.String,this.Row,this.ResponseStatus});
    BatchDataErrorsEditResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Id = json['Id'];
        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() => {
        'Id': Id,
        'BatchId': BatchId,
        'Type': Type,
        'String': String,
        'Row': Row,
        'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
    };

    getTypeName() => "BatchDataErrorsEditResponse";
    TypeContext? context = _ctx;
}

// @DataContract
class BatchDataErrorsEdit implements IConvertible
{
    // @DataMember(Order=1)
    // @Validate(Validator="NotNull")
    int? Id;

    // @DataMember(Order=2)
    int? BatchId;

    // @DataMember(Order=3)
    String? Type;

    // @DataMember(Order=4)
    String? String;

    // @DataMember(Order=5)
    int? Row;

    BatchDataErrorsEdit({this.Id,this.BatchId,this.Type,this.String,this.Row});
    BatchDataErrorsEdit.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Id = json['Id'];
        BatchId = json['BatchId'];
        Type = json['Type'];
        String = json['String'];
        Row = json['Row'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Id': Id,
        'BatchId': BatchId,
        'Type': Type,
        'String': String,
        'Row': Row
    };

    getTypeName() => "BatchDataErrorsEdit";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'duengageapi.uat.scadsoftware.com', types: <String, TypeInfo> {
    'BatchDataErrorsEditResponse': TypeInfo(TypeOf.Class, create:() => BatchDataErrorsEditResponse()),
    'BatchDataErrorsEdit': TypeInfo(TypeOf.Class, create:() => BatchDataErrorsEdit()),
});

Dart BatchDataErrorsEdit DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

PUT /batch_data_errors/{Id} HTTP/1.1 
Host: duengageapi.uat.scadsoftware.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Id: 0,
	BatchId: 0,
	Type: String,
	String: String,
	Row: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Id: 0,
	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
		}
	}
}