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
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class OrganizationRequest
{
    open var Organization:ArrayList<Organization> = ArrayList<Organization>()
    open var OrganizationId:Int? = null
}

open class Organization
{
    open var OrganizationId:Long? = null
    open var OrganizationTypeId:Int? = null
    open var StateID:Int? = null
    open var StateName:String? = null
    open var DistrictID:Int? = null
    open var DistrictName:String? = null
    open var CountyID:Int? = null
    open var CountyName:String? = null
    open var SchoolID:Long? = null
    open var SchoolName:String? = null
    open var EntityName:String? = null
    open var EntityId:String? = null
    open var Source:String? = null
    open var Pera_ListId:Int? = null
}

open class OrganizationResponse
{
    open var ResponseStatus:ResponseStatus? = null
    open var Organization:ArrayList<Organization> = ArrayList<Organization>()
}

Kotlin OrganizationRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

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/csv
Content-Type: text/csv
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/csv
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}]}