digitaluapi

<back to all web services

BatchDataErrorsAdd

Requires Authentication
Requires any of the roles:Client, Admin, Partner
The following routes are available for this service:
POST/batch_data_errors
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports digitaluapi.ServiceModel

Namespace Global

    Namespace digitaluapi.ServiceModel

        <DataContract>
        Public Partial Class BatchDataErrorsAdd
            <DataMember(Order:=2)>
            Public Overridable Property BatchId As Long?

            <DataMember(Order:=3)>
            Public Overridable Property Type As String

            <DataMember(Order:=4)>
            Public Overridable Property [String] As String

            <DataMember(Order:=5)>
            Public Overridable Property Row As Integer?
        End Class

        Public Partial Class BatchDataErrorsAddResponse
            <DataMember(Order:=2)>
            Public Overridable Property BatchId As Long?

            <DataMember(Order:=3)>
            Public Overridable Property Type As String

            <DataMember(Order:=4)>
            Public Overridable Property [String] As String

            <DataMember(Order:=5)>
            Public Overridable Property Row As Integer?

            <DataMember(Order:=7)>
            Public Overridable Property ResponseStatus As ResponseStatus
        End Class
    End Namespace
End Namespace

VB.NET BatchDataErrorsAdd 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.

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
		}
	}
}