Trendsic Platform Service

<back to all web services

AccessLogRequest

Requires Authentication
Requires any of the roles:Worker, Agent, Administrator
The following routes are available for this service:
GET,POST,OPTIONS/v1/AccessLog
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class AccessLogRequest
{
    open var AccessLog:ArrayList<AccessLog> = ArrayList<AccessLog>()
}

open class AccessLog
{
    open var Id:Int? = null
    open var LoggedInUser:String? = null
    open var SelectedAgent:String? = null
    open var IP:String? = null
    open var Description:String? = null
    open var LogDate:Date? = null
}

open class ErrorLogResponse
{
    open var ResponseStatus:ResponseStatus? = null
    open var ErrorLog:ArrayList<ErrorLog> = ArrayList<ErrorLog>()
}

open class ErrorLog
{
    open var ErrorLogId:Int? = null
    open var Message:String? = null
    open var Page:String? = null
    open var LineNumber:Int? = null
    open var ColNumber:Int? = null
    open var UserAgent:String? = null
    open var LogDate:Date? = null
}

Kotlin AccessLogRequest 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/AccessLog HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"AccessLog":[{"Id":0,"LoggedInUser":"String","SelectedAgent":"String","IP":"String","Description":"String","LogDate":"0001-01-01T00:00:00.0000000"}]}
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"}},"ErrorLog":[{"ErrorLogId":0,"Message":"String","Page":"String","LineNumber":0,"ColNumber":0,"UserAgent":"String","LogDate":"0001-01-01T00:00:00.0000000"}]}