Cyan Web API - Version 1


POST api/tenants

            Creates a Tenant.
            

Request Information

Parameters

NameDescriptionAdditional information
tenantRepresentation

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "tenantId": "ef53ca46-c2eb-4c8c-8dbf-9841a63d27cb",
  "parentTenantId": "1345fb78-8db9-4228-b3df-d14224b4fefd",
  "lookupKey": "sample string 2",
  "name": "sample string 3",
  "description": "sample string 4",
  "accessKey": "sample string 5",
  "enrollmentId": "sample string 6",
  "enrollmentPassword": "sample string 7",
  "recoveryUrl": "sample string 8",
  "createdDateUtc": "2025-11-17T01:42:04.8206634+00:00",
  "updatedDateUtc": "2025-11-17T01:42:04.8206634+00:00"
}

application/xml, text/xml

Sample:
<TenantRepresentation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BlueDot.Cyan.Server.Core.Models.Rest.Version1">
  <CreatedDateUtc>2025-11-17T01:42:04.8206634+00:00</CreatedDateUtc>
  <UpdatedDateUtc>2025-11-17T01:42:04.8206634+00:00</UpdatedDateUtc>
  <AccessKey>sample string 5</AccessKey>
  <Description>sample string 4</Description>
  <EnrollmentId>sample string 6</EnrollmentId>
  <EnrollmentPassword>sample string 7</EnrollmentPassword>
  <LookupKey>sample string 2</LookupKey>
  <Name>sample string 3</Name>
  <ParentTenantId>1345fb78-8db9-4228-b3df-d14224b4fefd</ParentTenantId>
  <RecoveryUrl>sample string 8</RecoveryUrl>
  <TenantId>ef53ca46-c2eb-4c8c-8dbf-9841a63d27cb</TenantId>
</TenantRepresentation>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'TenantRepresentation'.