Trendsic Platform Service

<back to all web services

DocumentShareListRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/documentshare/attachment/{AttachmentId}
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 DocumentShare
            Public Overridable Property DocumentShareId As Integer
            Public Overridable Property DocumentShareUID As Guid
            Public Overridable Property TokenHash As String
            Public Overridable Property AttachmentId As Guid
            Public Overridable Property SensitivityTier As String
            Public Overridable Property RequireOtp As Boolean
            Public Overridable Property OtpChannel As String
            Public Overridable Property DeliveryChannels As String
            Public Overridable Property RecipientContactId As Integer?
            Public Overridable Property RecipientEmail As String
            Public Overridable Property RecipientPhone As String
            Public Overridable Property SmsConsentSnapshot As Boolean
            Public Overridable Property CreatedByUserId As Guid
            Public Overridable Property CreatedByAgentId As Integer?
            Public Overridable Property CreatedAtUtc As Date
            Public Overridable Property ExpiresAtUtc As Date
            Public Overridable Property MaxViews As Integer?
            Public Overridable Property ViewCount As Integer
            Public Overridable Property RevokedAtUtc As Date?
            Public Overridable Property RevokedByUserId As Guid?
        End Class

        Public Partial Class DocumentShareExtended
            Inherits DocumentShare
            Public Overridable Property AttachmentName As String
            Public Overridable Property RecipientDisplayName As String
            Public Overridable Property RecipientType As String
            Public Overridable Property CreatedByName As String
            Public Overridable Property Status As String
        End Class

        Public Partial Class DocumentShareListRequest
            Public Overridable Property AttachmentId As Guid
        End Class

        Public Partial Class DocumentShareResponse
            Public Overridable Property ResponseStatus As ResponseStatus
            Public Overridable Property DocumentShare As List(Of DocumentShareExtended) = New List(Of DocumentShareExtended)
            Public Overridable Property ShareUrl As String
        End Class
    End Namespace
End Namespace

VB.NET DocumentShareListRequest 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/documentshare/attachment/{AttachmentId} 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
		}
	},
	DocumentShare: 
	[
		{
			AttachmentName: String,
			RecipientDisplayName: String,
			RecipientType: String,
			CreatedByName: String,
			Status: String,
			DocumentShareId: 0,
			DocumentShareUID: 00000000000000000000000000000000,
			TokenHash: String,
			AttachmentId: 00000000000000000000000000000000,
			SensitivityTier: String,
			RequireOtp: False,
			OtpChannel: String,
			DeliveryChannels: String,
			RecipientContactId: 0,
			RecipientEmail: String,
			RecipientPhone: String,
			SmsConsentSnapshot: False,
			CreatedByUserId: 00000000000000000000000000000000,
			CreatedByAgentId: 0,
			CreatedAtUtc: 0001-01-01,
			ExpiresAtUtc: 0001-01-01,
			MaxViews: 0,
			ViewCount: 0,
			RevokedAtUtc: 0001-01-01,
			RevokedByUserId: 00000000000000000000000000000000
		}
	],
	ShareUrl: String
}