TenantController.CreateTenant Method |
Creates a tenant.
Namespace:
Dundas.BI.WebApi.Controllers
Assembly:
Dundas.BI.WebApi (in Dundas.BI.WebApi.dll) Version: 2.0.0.0 (25.2.0.1000)
Syntax[HttpPostAttribute]
[ProducesResponseTypeAttribute(403)]
[ProducesResponseTypeAttribute(405)]
[ProducesResponseTypeAttribute(409)]
[ProducesResponseTypeAttribute(440)]
public ActionResult<TenantData> CreateTenant(
[FromBodyAttribute] TenantData? tenantOptions,
Guid? sessionId = null
)
<HttpPostAttribute>
<ProducesResponseTypeAttribute(403)>
<ProducesResponseTypeAttribute(405)>
<ProducesResponseTypeAttribute(409)>
<ProducesResponseTypeAttribute(440)>
Public Function CreateTenant (
<FromBodyAttribute> tenantOptions As TenantData,
Optional sessionId As Guid? = Nothing
) As ActionResult(Of TenantData)
public:
[HttpPostAttribute]
[ProducesResponseTypeAttribute(403)]
[ProducesResponseTypeAttribute(405)]
[ProducesResponseTypeAttribute(409)]
[ProducesResponseTypeAttribute(440)]
ActionResult<TenantData^>^ CreateTenant(
[FromBodyAttribute] TenantData^ tenantOptions,
Nullable<Guid> sessionId = nullptr
)
[<HttpPostAttribute>]
[<ProducesResponseTypeAttribute(403)>]
[<ProducesResponseTypeAttribute(405)>]
[<ProducesResponseTypeAttribute(409)>]
[<ProducesResponseTypeAttribute(440)>]
member CreateTenant :
[<FromBodyAttribute>] tenantOptions : TenantData *
?sessionId : Nullable<Guid>
(* Defaults:
let _sessionId = defaultArg sessionId null
*)
-> ActionResult<TenantData>
Parameters
- tenantOptions
- Type: Dundas.BI.WebApi.Models.TenantData
The tenant information to be created and saved. - sessionId (Optional)
- Type: System.Nullable<Guid>
Current session ID.
Return Value
Type:
ActionResult<TenantData>The operation completed successfully. The payload contains a
TenantData object.
See Also