Trendsic Platform Service

<back to all web services

LineMessagesRequest

Requires Authentication
Required roles:Administrator, Administrator, AdministratorRequires any of the roles:Agent, Administrator
The following routes are available for this service:
GET,POST,PUT,DELETE,OPTIONS/v1/LineMessages/{Id}
GET,POST,PUT,DELETE,OPTIONS/v1/LineMessages
GET,POST,PUT,DELETE,OPTIONS/v1/LineMessages/Line/{LineId}
GET,POST,PUT,DELETE,OPTIONS/v1/LineMessages/Location/{LocationId}/Customers/{CustomerId}
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal

Namespace Global

    Namespace CRM.AgencyPlatform.API.Internal

        Public Partial Class LineMessage
            Public Overridable Property Id As Guid
            Public Overridable Property LineId As Guid
            Public Overridable Property LineName As String
            Public Overridable Property Message As String
            Public Overridable Property MessageId As Guid
            Public Overridable Property DisplayOrder As Integer
        End Class

        Public Partial Class LineMessagesRequest
            Public Overridable Property Id As Guid
            Public Overridable Property LineId As Guid
            Public Overridable Property LineMessages As List(Of LineMessage) = New List(Of LineMessage)
        End Class

        Public Partial Class LineMessagesResponse
            Public Overridable Property ResponseStatus As ResponseStatus
            Public Overridable Property LineMessages As List(Of LineMessage) = New List(Of LineMessage)
        End Class
    End Namespace
End Namespace

VB.NET LineMessagesRequest 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 /v1/LineMessages/{Id} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"Id":"00000000000000000000000000000000","LineId":"00000000000000000000000000000000","LineMessages":[{"Id":"00000000000000000000000000000000","LineId":"00000000000000000000000000000000","LineName":"String","Message":"String","MessageId":"00000000000000000000000000000000","DisplayOrder":0}]}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"LineMessages":[{"Id":"00000000000000000000000000000000","LineId":"00000000000000000000000000000000","LineName":"String","Message":"String","MessageId":"00000000000000000000000000000000","DisplayOrder":0}]}