| Required roles: | Administrator, Administrator, Administrator | Requires any of the roles: | Agent, Administrator |
| 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} |
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class LineMessagesRequest
{
open var Id:UUID? = null
open var LineId:UUID? = null
open var LineMessages:ArrayList<LineMessage> = ArrayList<LineMessage>()
}
open class LineMessage
{
open var Id:UUID? = null
open var LineId:UUID? = null
open var LineName:String? = null
open var Message:String? = null
open var MessageId:UUID? = null
open var DisplayOrder:Int? = null
}
open class LineMessagesResponse
{
open var ResponseStatus:ResponseStatus? = null
open var LineMessages:ArrayList<LineMessage> = ArrayList<LineMessage>()
}
Kotlin LineMessagesRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
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/csv
Content-Type: text/csv
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/csv
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}]}