| POST | /v1/provision |
|---|
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 ProvisionResult
Public Overridable Property TenantId As Guid
Public Overridable Property TenantName As String
Public Overridable Property Slug As String
Public Overridable Property PackCode As String
Public Overridable Property BranchId As Guid
Public Overridable Property BranchName As String
Public Overridable Property RolesCreated As List(Of String) = New List(Of String)
Public Overridable Property CatalogItemsSeeded As Integer
Public Overridable Property OwnerAssigned As Boolean
Public Overridable Property OwnerEmail As String
Public Overridable Property ResponseStatus As ResponseStatus
End Class
Public Partial Class ProvisionTenantRequest
Public Overridable Property Name As String
Public Overridable Property Slug As String
Public Overridable Property PackCode As String
Public Overridable Property BranchName As String
Public Overridable Property TimeZoneId As String
Public Overridable Property SeedCatalog As Boolean
Public Overridable Property AssignMeAsOwner As Boolean
Public Overridable Property OwnerEmail As String
End Class
End Namespace
End Namespace
VB.NET ProvisionTenantRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/provision HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"Name":"String","Slug":"String","PackCode":"String","BranchName":"String","TimeZoneId":"String","SeedCatalog":false,"AssignMeAsOwner":false,"OwnerEmail":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"TenantId":"00000000000000000000000000000000","TenantName":"String","Slug":"String","PackCode":"String","BranchId":"00000000000000000000000000000000","BranchName":"String","RolesCreated":["String"],"CatalogItemsSeeded":0,"OwnerAssigned":false,"OwnerEmail":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}