Trendsic Platform Service

<back to all web services

DispatchNoticeRequest

The following routes are available for this service:
GET,OPTIONS/v1/dispatch/notice/{Token}/json
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 DispatchNoticeResponse() = 
        member val RefCode:String = null with get,set
        member val RecipientName:String = null with get,set
        member val Headline:String = null with get,set
        member val Body:String = null with get,set
        member val AffectedText:String = null with get,set
        member val OriginalWindow:String = null with get,set
        member val NewWindow:String = null with get,set
        member val ScopeLabel:String = null with get,set
        member val Reason:String = null with get,set
        member val HoldStatus:String = null with get,set
        member val ResumesUtc:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val Acked:Boolean = new Boolean() with get,set
        member val Invalid:Boolean = new Boolean() with get,set
        member val ResponseStatus:ResponseStatus = null with get,set

    [<AllowNullLiteral>]
    type DispatchNoticeRequest() = 
        member val Token:String = null with get,set

F# DispatchNoticeRequest 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/dispatch/notice/{Token}/json HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	RefCode: String,
	RecipientName: String,
	Headline: String,
	Body: String,
	AffectedText: String,
	OriginalWindow: String,
	NewWindow: String,
	ScopeLabel: String,
	Reason: String,
	HoldStatus: String,
	ResumesUtc: 0001-01-01,
	Acked: False,
	Invalid: False,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}