| GET,OPTIONS | /v1/records/requests |
|---|
"use strict";
export class RecordsRequestDto {
/** @param {{RequestId?:number,RequestKey?:string,Subject?:string,Body?:string,RequesterName?:string,RequesterContact?:string,Channel?:string,ReceivedLabel?:string,Status?:string,ExtendedDays?:number,ItemsJson?:string,LogJson?:string,DueDate?:string,DueDays?:number}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
RequestId;
/** @type {string} */
RequestKey;
/** @type {string} */
Subject;
/** @type {string} */
Body;
/** @type {string} */
RequesterName;
/** @type {string} */
RequesterContact;
/** @type {string} */
Channel;
/** @type {string} */
ReceivedLabel;
/** @type {string} */
Status;
/** @type {number} */
ExtendedDays;
/** @type {string} */
ItemsJson;
/** @type {string} */
LogJson;
/** @type {string} */
DueDate;
/** @type {number} */
DueDays;
}
export class RecordsRequestsResponse {
/** @param {{ResponseStatus?:ResponseStatus,Requests?:RecordsRequestDto[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {ResponseStatus} */
ResponseStatus;
/** @type {RecordsRequestDto[]} */
Requests = [];
}
export class RecordsRequestsRequest {
constructor(init) { Object.assign(this, init) }
}
JavaScript RecordsRequestsRequest 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/records/requests 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
}
},
Requests:
[
{
RequestId: 0,
RequestKey: String,
Subject: String,
Body: String,
RequesterName: String,
RequesterContact: String,
Channel: String,
ReceivedLabel: String,
Status: String,
ExtendedDays: 0,
ItemsJson: String,
LogJson: String,
DueDate: String,
DueDays: 0
}
]
}