Trendsic Platform Service

<back to all web services

FFFieldRequest

Requires Authentication
Requires any of the roles:Agent, Administrator, Agent, Administrator, Agent, Administrator, Agent, Administrator
The following routes are available for this service:
GET,POST,PUT,DELETE,OPTIONS/v1/FFField/{Id}
GET,POST,PUT,DELETE,OPTIONS/v1/FFField
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 FFField() = 
        member val Id:Guid = new Guid() with get,set
        member val FFSectionId:Guid = new Guid() with get,set
        member val FieldTypeId:Int32 = new Int32() with get,set
        member val x:Int32 = new Int32() with get,set
        member val y:Int32 = new Int32() with get,set
        member val height:Int32 = new Int32() with get,set
        member val width:Int32 = new Int32() with get,set
        member val Text:String = null with get,set

    [<AllowNullLiteral>]
    type FFFieldExtended() = 
        inherit FFField()
        member val Name:String = null with get,set
        member val IsYesNo:Boolean = new Boolean() with get,set

    [<AllowNullLiteral>]
    type FFFieldResponse() = 
        member val ResponseStatus:ResponseStatus = null with get,set
        member val FFField:ResizeArray<FFFieldExtended> = new ResizeArray<FFFieldExtended>() with get,set

    [<AllowNullLiteral>]
    type FFFieldRequest() = 
        member val FFField:ResizeArray<FFFieldExtended> = new ResizeArray<FFFieldExtended>() with get,set

F# FFFieldRequest 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.

POST /v1/FFField/{Id} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	FFField: 
	[
		{
			Name: String,
			IsYesNo: False,
			Id: 00000000000000000000000000000000,
			FFSectionId: 00000000000000000000000000000000,
			FieldTypeId: 0,
			x: 0,
			y: 0,
			height: 0,
			width: 0,
			Text: String
		}
	]
}
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
		}
	},
	FFField: 
	[
		{
			Name: String,
			IsYesNo: False,
			Id: 00000000000000000000000000000000,
			FFSectionId: 00000000000000000000000000000000,
			FieldTypeId: 0,
			x: 0,
			y: 0,
			height: 0,
			width: 0,
			Text: String
		}
	]
}