digitaluapi

<back to all web services

CustomersSegmentsAutoQueryAdd

The following routes are available for this service:
POST/auto/customerssegments
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 CustomersSegmentsAutoQueryAdd
            Implements ICreateDb(Of CustomersSegments)
            <DataMember(Order:=2)>
            Public Overridable Property TenantsId As Long

            <DataMember(Order:=3)>
            Public Overridable Property CustomersId As Long

            <DataMember(Order:=4)>
            Public Overridable Property SegmentsId As Long

            <DataMember(Order:=5)>
            Public Overridable Property PublicAccessGuid As Guid
        End Class
    End Namespace

    Namespace ServiceStack

        <DataContract>
        Public Partial Class IdResponse
            <DataMember(Order:=1)>
            Public Overridable Property Id As String

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

VB.NET CustomersSegmentsAutoQueryAdd DTOs

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

HTTP + OTHER

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

POST /auto/customerssegments HTTP/1.1 
Host: duengageapi.uat.scadsoftware.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"TenantsId":0,"CustomersId":0,"SegmentsId":0,"PublicAccessGuid":"00000000000000000000000000000000"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

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