digitaluapi

<back to all web services

UploadBatchErrors

Requires Authentication
Requires any of the roles:Client, Admin, Partner
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

        Public Partial Class BatchErrorsRequest
            Public Overridable Property BatchId As Integer
            <DataMember(Order:=3)>
            <Required>
            Public Overridable Property Type As String

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

            Public Overridable Property Row As Integer
            Public Overridable Property Code As String
        End Class

        Public Partial Class BatchErrorsResponse
            Public Overridable Property Records As Integer
            Public Overridable Property ResponseStatus As ResponseStatus
        End Class

        Public Partial Class UploadBatchErrors
            Inherits List(Of BatchErrorsRequest)
        End Class
    End Namespace
End Namespace

VB.NET UploadBatchErrors DTOs

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

HTTP + CSV

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

POST /csv/reply/UploadBatchErrors HTTP/1.1 
Host: duengageapi.uat.scadsoftware.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

[]
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Records":0,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}