Socotra
API ReferenceBusiness Account API

Tenant Management API

ActionEndpoint
Fetch My TenantsGET/auth/tenants/mytenants/list
Fetch Tenant DetailsGET/auth/tenants/{locator}
Create a TenantPOST/config/createTenant
Fetch all Tenants in the EnvironmentGET/auth/tenants/list
Update a TenantPATCH/auth/tenants/{locator}
Retire a TenantPATCH/auth/tenants/{locator}/retire
Clone to a Test TenantPOST/config/{tenantLocator}/deployments/cloneTest
Clone to a Production tenantPOST/config/{tenantLocator}/deployments/cloneProduction

Fetch My Tenants

Fetch My TenantsfetchMyTenants
GET/auth/tenants/mytenants/list

Returns a list of tenants you have access to.

Parameters

NameInTypeRequiredDescription
offsetqueryinteger?No
countqueryinteger?No
extendedqueryboolean?NoWhen false, returns a bare array.
Security Group:tenants
Permission:
custom
TenantListResponse

Required properties

PropertyTypeDescription
listCompletedboolean
itemsTenantResponse[]

Fetch Tenant Details

Fetch Tenant DetailsfetchTenant
GET/auth/tenants/{locator}

Parameters

NameInTypeRequiredDescription
locatorpathuuidYes
Security Group:tenants
Permission:
read
TenantResponse

Required properties

PropertyTypeDescription
locatoruuid
namestring
businessAccountstring
typeEnum test | production | retired | deleted
updatedAtdatetime
createdAtdatetime
createdByuuid

Optional properties

PropertyTypeDescription
descriptionstring?

Create a Tenant

Create a TenantcreateTenant
POST/config/createTenant

Parameters

NameInTypeRequiredDescription
namequerystring?No
descriptionquerystring?No
Request with application/zip:ConfigurationRef
Request with multipart/form-data:ConfigurationRef
Security Group:tenants
Permission:
create-tenant
TenantDeploymentResult

Required properties

PropertyTypeDescription
locatoruuid
namestring
bootstrapResultBootstrapResult
deploymentResultConfigBuilderResult

Fetch all Tenants in the Environment

Fetch all Tenants in the EnvironmentfetchTenants
GET/auth/tenants/list

Parameters

NameInTypeRequiredDescription
offsetqueryinteger?No
countqueryinteger?No
typequerystring[]?No
extendedqueryboolean?No
Response:TenantResponse[]
Security Group:tenants
Permissions:
read,list

Update a Tenant

Update a TenantupdateTenant
PATCH/auth/tenants/{locator}

Parameters

NameInTypeRequiredDescription
locatorpathuuidYes
Security Group:tenants
Permission:
write
TenantUpdateRequest

Required properties

PropertyTypeDescription
namestring
descriptionstring

Retire a Tenant

Retire a TenantretireTenant
PATCH/auth/tenants/{locator}/retire

Parameters

NameInTypeRequiredDescription
locatorpathuuidYes
Security Group:tenants
Permission:
retire

Cloning

Clone to a Test Tenant

Clone to a Test TenantcloneConfigToTest
POST/config/{tenantLocator}/deployments/cloneTest

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
tenantNamequerystring?No
tenantDescriptionquerystring?No
Security Group:deployments
Permission:
cloneTest

Clone to a Production tenant

Clone to a Production tenantcloneConfigToProduction
POST/config/{tenantLocator}/deployments/cloneProduction

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
tenantNamequerystring?No
tenantDescriptionquerystring?No
Security Group:deployments
Permission:
cloneProduction
DeploymentCloneResponse

Required properties

PropertyTypeDescription
locatoruuid
deploymentResultConfigBuilderResult
resourceCloneStatusEnum queued | failed

On this page