| GET,OPTIONS | /v1/records/requests |
|---|
export class RecordsRequestDto
{
public RequestId: number;
public RequestKey: string;
public Subject: string;
public Body: string;
public RequesterName: string;
public RequesterContact: string;
public Channel: string;
public ReceivedLabel: string;
public Status: string;
public ExtendedDays: number;
public ItemsJson: string;
public LogJson: string;
public DueDate: string;
public DueDays: number;
public constructor(init?: Partial<RecordsRequestDto>) { (Object as any).assign(this, init); }
}
export class RecordsRequestsResponse
{
public ResponseStatus: ResponseStatus;
public Requests: RecordsRequestDto[] = [];
public constructor(init?: Partial<RecordsRequestsResponse>) { (Object as any).assign(this, init); }
}
export class RecordsRequestsRequest
{
public constructor(init?: Partial<RecordsRequestsRequest>) { (Object as any).assign(this, init); }
}
TypeScript 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
}
]
}