| GET,OPTIONS | /v1/audit/documentaccess |
|---|
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using CRM.AgencyPlatform.API.Internal;
namespace CRM.AgencyPlatform.API.Internal
{
public partial class DocumentAccessAuditRequest
{
public virtual DateTime? FromUtc { get; set; }
public virtual DateTime? ToUtc { get; set; }
public virtual Guid? ActorUserId { get; set; }
public virtual Guid? AttachmentId { get; set; }
public virtual string EventType { get; set; }
public virtual int MaxRows { get; set; }
}
public partial class DocumentAccessAuditResponse
{
public virtual ResponseStatus ResponseStatus { get; set; }
public virtual List<DocumentAccessAuditRow> AuditLog { get; set; } = [];
}
public partial class DocumentAccessAuditRow
: DocumentShareAccessLog
{
public virtual string AccessChannel { get; set; }
public virtual string AttachmentName { get; set; }
public virtual string ActorName { get; set; }
public virtual string RecipientDisplayName { get; set; }
public virtual string RecipientEmail { get; set; }
public virtual string SensitivityTier { get; set; }
}
public partial class DocumentShareAccessLog
{
public virtual long DocumentShareAccessLogId { get; set; }
public virtual int? DocumentShareId { get; set; }
public virtual Guid? AttachmentId { get; set; }
public virtual string EventType { get; set; }
public virtual string Outcome { get; set; }
public virtual string DetailMessage { get; set; }
public virtual string IpAddress { get; set; }
public virtual string UserAgent { get; set; }
public virtual Guid? ActorUserId { get; set; }
public virtual string ActorRole { get; set; }
public virtual DateTime CreatedAtUtc { get; set; }
}
}
C# DocumentAccessAuditRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/audit/documentaccess 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,
DocumentShareAccessLogId: 0,
DocumentShareId: 0,
AttachmentId: 00000000000000000000000000000000,
EventType: String,
Outcome: String,
DetailMessage: String,
IpAddress: String,
UserAgent: String,
ActorUserId: 00000000000000000000000000000000,
ActorRole: String,
CreatedAtUtc: 0001-01-01
}
]
}