| Required roles: | Administrator, Administrator | Requires any of the roles: | Agent, Administrator, Agent, Administrator, Agent, Administrator |
| PUT,DELETE,OPTIONS | /v1/SlotDistrict/{ID} | ||
|---|---|---|---|
| POST,OPTIONS | /v1/SlotDistrict |
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 SchoolAgent() =
member val AgentId:Int32 = new Int32() with get,set
member val AgentName:String = null with get,set
member val SlotDistrictApprovalID:Int32 = new Int32() with get,set
[<AllowNullLiteral>]
type SlotDistrictSchool() =
member val SchoolId:Int64 = new Int64() with get,set
member val SchoolName:String = null with get,set
member val AgentList:ResizeArray<SchoolAgent> = new ResizeArray<SchoolAgent>() with get,set
[<AllowNullLiteral>]
type SlotDistrict() =
member val ID:Int32 = new Int32() with get,set
member val Name:String = null with get,set
member val County:String = null with get,set
member val DistrictId:Int32 = new Int32() with get,set
member val DistrictName:String = null with get,set
member val Address_Physical:String = null with get,set
member val Address_Mailing:String = null with get,set
member val City:String = null with get,set
member val Zip:String = null with get,set
member val Zip_4:String = null with get,set
member val StateId:Int32 = new Int32() with get,set
member val State:String = null with get,set
member val Phone:String = null with get,set
member val NumEmployees:Nullable<Decimal> = new Nullable<Decimal>() with get,set
member val NumSchools:Nullable<Int32> = new Nullable<Int32>() with get,set
member val Type:String = null with get,set
member val Status_NLG:Boolean = new Boolean() with get,set
member val Status_Midland:Boolean = new Boolean() with get,set
member val Status_Great_American:Boolean = new Boolean() with get,set
member val Status_VOYA:Boolean = new Boolean() with get,set
member val MVP:Nullable<Int32> = new Nullable<Int32>() with get,set
member val RVP:Nullable<Int32> = new Nullable<Int32>() with get,set
member val Schools:ResizeArray<SlotDistrictSchool> = new ResizeArray<SlotDistrictSchool>() with get,set
member val MilesAway:Nullable<Double> = new Nullable<Double>() with get,set
member val HasComments:Boolean = new Boolean() with get,set
[<AllowNullLiteral>]
type SlotDistrictResponse() =
member val ResponseStatus:ResponseStatus = null with get,set
member val SlotDistrict:ResizeArray<SlotDistrict> = new ResizeArray<SlotDistrict>() with get,set
[<AllowNullLiteral>]
type SlotDistrictRequest() =
member val SlotDistrict:SlotDistrict = null with get,set
member val ID:Int32 = new Int32() with get,set
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/SlotDistrict HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"SlotDistrict":{"ID":0,"Name":"String","County":"String","DistrictId":0,"DistrictName":"String","Address_Physical":"String","Address_Mailing":"String","City":"String","Zip":"String","Zip_4":"String","StateId":0,"State":"String","Phone":"String","NumEmployees":0,"NumSchools":0,"Type":"String","Status_NLG":false,"Status_Midland":false,"Status_Great_American":false,"Status_VOYA":false,"MVP":0,"RVP":0,"Schools":[{"SchoolId":0,"SchoolName":"String","AgentList":[{"AgentId":0,"AgentName":"String","SlotDistrictApprovalID":0}]}],"MilesAway":0,"HasComments":false},"ID":0}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"SlotDistrict":[{"ID":0,"Name":"String","County":"String","DistrictId":0,"DistrictName":"String","Address_Physical":"String","Address_Mailing":"String","City":"String","Zip":"String","Zip_4":"String","StateId":0,"State":"String","Phone":"String","NumEmployees":0,"NumSchools":0,"Type":"String","Status_NLG":false,"Status_Midland":false,"Status_Great_American":false,"Status_VOYA":false,"MVP":0,"RVP":0,"Schools":[{"SchoolId":0,"SchoolName":"String","AgentList":[{"AgentId":0,"AgentName":"String","SlotDistrictApprovalID":0}]}],"MilesAway":0,"HasComments":false}]}