Trendsic Platform Service

<back to all web services

MyFilesAccessAuditRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/audit/myfiles
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class MyFilesAccessAuditRequest
{
    open var FromUtc:Date? = null
    open var ToUtc:Date? = null
    open var EventType:String? = null
    open var Category:String? = null
    open var AttachmentId:UUID? = null
    open var Search:String? = null
    open var ContentQuery:String? = null
    open var Page:Int? = null
    open var PageSize:Int? = null
}

open class DocumentAccessAuditResponse
{
    open var ResponseStatus:ResponseStatus? = null
    open var AuditLog:ArrayList<DocumentAccessAuditRow> = ArrayList<DocumentAccessAuditRow>()
    open var Total:Long? = null
    open var PageTotal:Long? = null
    open var Page:Int? = null
    open var PageSize:Int? = null
    open var Downloads:Long? = null
    open var Views:Long? = null
    open var Blocked:Long? = null
    open var Documents:Long? = null
    open var Actors:Long? = null
}

open class DocumentAccessAuditRow : DocumentShareAccessLog()
{
    open var AccessChannel:String? = null
    open var AttachmentName:String? = null
    open var ActorName:String? = null
    open var RecipientDisplayName:String? = null
    open var RecipientEmail:String? = null
    open var SensitivityTier:String? = null
    open var IsSensitive:Boolean? = null
}

open class DocumentShareAccessLog
{
    open var DocumentShareAccessLogId:Long? = null
    open var DocumentShareId:Int? = null
    open var AttachmentId:UUID? = null
    open var EventType:String? = null
    open var Outcome:String? = null
    open var DetailMessage:String? = null
    open var IpAddress:String? = null
    open var UserAgent:String? = null
    open var ActorUserId:UUID? = null
    open var ActorRole:String? = null
    open var CreatedAtUtc:Date? = null
}

Kotlin MyFilesAccessAuditRequest DTOs

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

HTTP + JSV

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

GET /v1/audit/myfiles HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	AuditLog: 
	[
		{
			AccessChannel: String,
			AttachmentName: String,
			ActorName: String,
			RecipientDisplayName: String,
			RecipientEmail: String,
			SensitivityTier: String,
			IsSensitive: False,
			DocumentShareAccessLogId: 0,
			DocumentShareId: 0,
			AttachmentId: 00000000000000000000000000000000,
			EventType: String,
			Outcome: String,
			DetailMessage: String,
			IpAddress: String,
			UserAgent: String,
			ActorUserId: 00000000000000000000000000000000,
			ActorRole: String,
			CreatedAtUtc: 0001-01-01
		}
	],
	Total: 0,
	PageTotal: 0,
	Page: 0,
	PageSize: 0,
	Downloads: 0,
	Views: 0,
	Blocked: 0,
	Documents: 0,
	Actors: 0
}