Trendsic Platform Service

<back to all web services

ProvisionTenantRequest

Requires Authentication
The following routes are available for this service:
POST/v1/provision
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 ProvisionResult() = 
        member val TenantId:Guid = new Guid() with get,set
        member val TenantName:String = null with get,set
        member val Slug:String = null with get,set
        member val PackCode:String = null with get,set
        member val BranchId:Guid = new Guid() with get,set
        member val BranchName:String = null with get,set
        member val RolesCreated:ResizeArray<String> = new ResizeArray<String>() with get,set
        member val CatalogItemsSeeded:Int32 = new Int32() with get,set
        member val OwnerAssigned:Boolean = new Boolean() with get,set
        member val OwnerEmail:String = null with get,set
        member val ResponseStatus:ResponseStatus = null with get,set

    [<AllowNullLiteral>]
    type ProvisionTenantRequest() = 
        member val Name:String = null with get,set
        member val Slug:String = null with get,set
        member val PackCode:String = null with get,set
        member val BranchName:String = null with get,set
        member val TimeZoneId:String = null with get,set
        member val SeedCatalog:Boolean = new Boolean() with get,set
        member val AssignMeAsOwner:Boolean = new Boolean() with get,set
        member val OwnerEmail:String = null with get,set

F# ProvisionTenantRequest DTOs

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

HTTP + JSV

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