digitaluapi

<back to all web services

UploadFieldMappings

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 BatchDataFieldsRequest
            Public Overridable Property BatchId As Integer
            <DataMember(Order:=3)>
            <Required>
            Public Overridable Property UploadFieldsId As Integer

            <DataMember(Order:=4)>
            <Required>
            Public Overridable Property MappedFieldName As String
        End Class

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

        Public Partial Class UploadFieldMappings
            Inherits List(Of BatchDataFieldsRequest)
        End Class
    End Namespace
End Namespace

VB.NET UploadFieldMappings 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/UploadFieldMappings 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"}}}