Trendsic Platform Service

<back to all web services

OrganizationRequest

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/Organization/{OrganizationId}
GET,POST,PUT,DELETE,OPTIONS/v1/Organization
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 Organization() = 
        member val OrganizationId:Int64 = new Int64() with get,set
        member val OrganizationTypeId:Int32 = new Int32() with get,set
        member val StateID:Int32 = new Int32() with get,set
        member val StateName:String = null with get,set
        member val DistrictID:Int32 = new Int32() with get,set
        member val DistrictName:String = null with get,set
        member val CountyID:Int32 = new Int32() with get,set
        member val CountyName:String = null with get,set
        member val SchoolID:Int64 = new Int64() with get,set
        member val SchoolName:String = null with get,set
        member val EntityName:String = null with get,set
        member val EntityId:String = null with get,set
        member val Source:String = null with get,set
        member val Pera_ListId:Int32 = new Int32() with get,set

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

    [<AllowNullLiteral>]
    type OrganizationRequest() = 
        member val Organization:ResizeArray<Organization> = new ResizeArray<Organization>() with get,set
        member val OrganizationId:Int32 = new Int32() with get,set

F# OrganizationRequest 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/Organization/{OrganizationId} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Organization: 
	[
		{
			OrganizationId: 0,
			OrganizationTypeId: 0,
			StateID: 0,
			StateName: String,
			DistrictID: 0,
			DistrictName: String,
			CountyID: 0,
			CountyName: String,
			SchoolID: 0,
			SchoolName: String,
			EntityName: String,
			EntityId: String,
			Source: String,
			Pera_ListId: 0
		}
	],
	OrganizationId: 0
}
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
		}
	},
	Organization: 
	[
		{
			OrganizationId: 0,
			OrganizationTypeId: 0,
			StateID: 0,
			StateName: String,
			DistrictID: 0,
			DistrictName: String,
			CountyID: 0,
			CountyName: String,
			SchoolID: 0,
			SchoolName: String,
			EntityName: String,
			EntityId: String,
			Source: String,
			Pera_ListId: 0
		}
	]
}