| Requires any of the roles: | Agent, Administrator, Agent, Administrator, Agent, Administrator, Agent, Administrator |
| GET,DELETE,OPTIONS | /v1/OrganizationType/{OrganizationTypeId} | ||
|---|---|---|---|
| GET,POST,PUT,OPTIONS | /v1/OrganizationType |
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal
Namespace Global
Namespace CRM.AgencyPlatform.API.Internal
Public Partial Class OrganizationType
Public Overridable Property OrganizationTypeId As Integer
Public Overridable Property OrganizationTypeName As String
Public Overridable Property DisplayFor As String
Public Overridable Property Level1DisplayName As String
Public Overridable Property Level2DisplayName As String
Public Overridable Property HasLevel2 As Boolean
End Class
Public Partial Class OrganizationTypeRequest
Public Overridable Property OrganizationTypeId As Integer
Public Overridable Property OrganizationType As OrganizationType
End Class
Public Partial Class OrganizationTypeResponse
Public Overridable Property ResponseStatus As ResponseStatus
Public Overridable Property OrganizationType As List(Of OrganizationType) = New List(Of OrganizationType)
End Class
End Namespace
End Namespace
VB.NET OrganizationTypeRequest DTOs
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/OrganizationType HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsonl
Content-Type: text/jsonl
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/jsonl
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}]}