Trendsic Platform Service

<back to all web services

OrganizationTypeRequest

Requires Authentication
Requires any of the roles:Agent, Administrator, Agent, Administrator, Agent, Administrator, Agent, Administrator
The following routes are available for this service:
GET,DELETE,OPTIONS/v1/OrganizationType/{OrganizationTypeId}
GET,POST,PUT,OPTIONS/v1/OrganizationType
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class OrganizationTypeRequest
{
    open var OrganizationTypeId:Int? = null
    open var OrganizationType:OrganizationType? = null
}

open class OrganizationType
{
    open var OrganizationTypeId:Int? = null
    open var OrganizationTypeName:String? = null
    open var DisplayFor:String? = null
    open var Level1DisplayName:String? = null
    open var Level2DisplayName:String? = null
    open var HasLevel2:Boolean? = null
}

open class OrganizationTypeResponse
{
    open var ResponseStatus:ResponseStatus? = null
    open var OrganizationType:ArrayList<OrganizationType> = ArrayList<OrganizationType>()
}

Kotlin OrganizationTypeRequest 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/OrganizationType HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"OrganizationTypeId":0,"OrganizationType":{"OrganizationTypeId":0,"OrganizationTypeName":"String","DisplayFor":"String","Level1DisplayName":"String","Level2DisplayName":"String","HasLevel2":false}}
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"}},"OrganizationType":[{"OrganizationTypeId":0,"OrganizationTypeName":"String","DisplayFor":"String","Level1DisplayName":"String","Level2DisplayName":"String","HasLevel2":false}]}