digitaluapi

<back to all web services

BatchDataFieldsLookup

Requires Authentication
Requires any of the roles:Client, Admin, Partner
The following routes are available for this service:
GET/batch_data_fields
import 'package:servicestack/servicestack.dart';

// @DataContract
class BatchDataFieldsLookup implements IConvertible
{
    // @DataMember(Order=2)
    int? BatchId;

    // @DataMember(Order=3)
    int? UploadFieldsId;

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

    BatchDataFieldsLookup({this.BatchId,this.UploadFieldsId,this.MappedFieldName});
    BatchDataFieldsLookup.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

    Map<String, dynamic> toJson() => {
        'BatchId': BatchId,
        'UploadFieldsId': UploadFieldsId,
        'MappedFieldName': MappedFieldName
    };

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

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

Dart BatchDataFieldsLookup 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.

GET /batch_data_fields HTTP/1.1 
Host: duengageapi.uat.scadsoftware.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

[
	{
		BatchId: 0,
		UploadFieldsId: 0,
		MappedFieldName: String,
		ResponseStatus: 
		{
			ErrorCode: String,
			Message: String,
			StackTrace: String,
			Errors: 
			[
				{
					ErrorCode: String,
					FieldName: String,
					Message: String,
					Meta: 
					{
						String: String
					}
				}
			],
			Meta: 
			{
				String: String
			}
		}
	}
]