| GET,OPTIONS | /v1/records/requests |
|---|
namespace CRM.AgencyPlatform.API.Internal
open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type RecordsRequestDto() =
member val RequestId:Int32 = new Int32() with get,set
member val RequestKey:String = null with get,set
member val Subject:String = null with get,set
member val Body:String = null with get,set
member val RequesterName:String = null with get,set
member val RequesterContact:String = null with get,set
member val Channel:String = null with get,set
member val ReceivedLabel:String = null with get,set
member val Status:String = null with get,set
member val ExtendedDays:Int32 = new Int32() with get,set
member val ItemsJson:String = null with get,set
member val LogJson:String = null with get,set
member val DueDate:String = null with get,set
member val DueDays:Int32 = new Int32() with get,set
[<AllowNullLiteral>]
type RecordsRequestsResponse() =
member val ResponseStatus:ResponseStatus = null with get,set
member val Requests:ResizeArray<RecordsRequestDto> = new ResizeArray<RecordsRequestDto>() with get,set
[<AllowNullLiteral>]
type RecordsRequestsRequest() =
class end
F# 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
}
]
}