| POST,OPTIONS | /v1/documentshare/{DocumentShareId}/resend |
|---|
"use strict";
export class DocumentShare {
/** @param {{DocumentShareId?:number,DocumentShareUID?:string,TokenHash?:string,AttachmentId?:string,SensitivityTier?:string,RequireOtp?:boolean,OtpChannel?:string,DeliveryChannels?:string,RecipientContactId?:number,RecipientEmail?:string,RecipientPhone?:string,SmsConsentSnapshot?:boolean,CreatedByUserId?:string,CreatedByAgentId?:number,CreatedAtUtc?:string,ExpiresAtUtc?:string,MaxViews?:number,ViewCount?:number,RevokedAtUtc?:string,RevokedByUserId?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
DocumentShareId;
/** @type {string} */
DocumentShareUID;
/** @type {string} */
TokenHash;
/** @type {string} */
AttachmentId;
/** @type {string} */
SensitivityTier;
/** @type {boolean} */
RequireOtp;
/** @type {string} */
OtpChannel;
/** @type {string} */
DeliveryChannels;
/** @type {?number} */
RecipientContactId;
/** @type {string} */
RecipientEmail;
/** @type {string} */
RecipientPhone;
/** @type {boolean} */
SmsConsentSnapshot;
/** @type {string} */
CreatedByUserId;
/** @type {?number} */
CreatedByAgentId;
/** @type {string} */
CreatedAtUtc;
/** @type {string} */
ExpiresAtUtc;
/** @type {?number} */
MaxViews;
/** @type {number} */
ViewCount;
/** @type {?string} */
RevokedAtUtc;
/** @type {?string} */
RevokedByUserId;
}
export class DocumentShareExtended extends DocumentShare {
/** @param {{AttachmentName?:string,RecipientDisplayName?:string,RecipientType?:string,CreatedByName?:string,Status?:string,DocumentShareId?:number,DocumentShareUID?:string,TokenHash?:string,AttachmentId?:string,SensitivityTier?:string,RequireOtp?:boolean,OtpChannel?:string,DeliveryChannels?:string,RecipientContactId?:number,RecipientEmail?:string,RecipientPhone?:string,SmsConsentSnapshot?:boolean,CreatedByUserId?:string,CreatedByAgentId?:number,CreatedAtUtc?:string,ExpiresAtUtc?:string,MaxViews?:number,ViewCount?:number,RevokedAtUtc?:string,RevokedByUserId?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
AttachmentName;
/** @type {string} */
RecipientDisplayName;
/** @type {string} */
RecipientType;
/** @type {string} */
CreatedByName;
/** @type {string} */
Status;
}
export class DocumentShareResponse {
/** @param {{ResponseStatus?:ResponseStatus,DocumentShare?:DocumentShareExtended[],ShareUrl?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {ResponseStatus} */
ResponseStatus;
/** @type {DocumentShareExtended[]} */
DocumentShare = [];
/** @type {string} */
ShareUrl;
}
export class DocumentShareResendRequest {
/** @param {{DocumentShareId?:number}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
DocumentShareId;
}
JavaScript DocumentShareResendRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/documentshare/{DocumentShareId}/resend HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"DocumentShareId":0}
HTTP/1.1 200 OK
Content-Type: application/json
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-01T00:00:00.0000000","ExpiresAtUtc":"0001-01-01T00:00:00.0000000","MaxViews":0,"ViewCount":0,"RevokedAtUtc":"0001-01-01T00:00:00.0000000","RevokedByUserId":"00000000000000000000000000000000"}],"ShareUrl":"String"}