SessionController.SwitchTenant Method |
Switches the tenant of the current session.
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("SwitchTenant")]
[ProducesResponseTypeAttribute(403)]
[ProducesResponseTypeAttribute(410)]
[ProducesResponseTypeAttribute(440)]
public ActionResult<SessionData> SwitchTenant(
[FromBodyAttribute] Guid? tenantId,
Guid? sessionId = null
)
<HttpPostAttribute("SwitchTenant")>
<ProducesResponseTypeAttribute(403)>
<ProducesResponseTypeAttribute(410)>
<ProducesResponseTypeAttribute(440)>
Public Function SwitchTenant (
<FromBodyAttribute> tenantId As Guid?,
Optional sessionId As Guid? = Nothing
) As ActionResult(Of SessionData)
public:
[HttpPostAttribute(L"SwitchTenant")]
[ProducesResponseTypeAttribute(403)]
[ProducesResponseTypeAttribute(410)]
[ProducesResponseTypeAttribute(440)]
ActionResult<SessionData^>^ SwitchTenant(
[FromBodyAttribute] Nullable<Guid> tenantId,
Nullable<Guid> sessionId = nullptr
)
[<HttpPostAttribute("SwitchTenant")>]
[<ProducesResponseTypeAttribute(403)>]
[<ProducesResponseTypeAttribute(410)>]
[<ProducesResponseTypeAttribute(440)>]
member SwitchTenant :
[<FromBodyAttribute>] tenantId : Nullable<Guid> *
?sessionId : Nullable<Guid>
(* Defaults:
let _sessionId = defaultArg sessionId null
*)
-> ActionResult<SessionData>
Parameters
- tenantId
- Type: System.Nullable<Guid>
The ID of the tenant to switch into. - sessionId (Optional)
- Type: System.Nullable<Guid>
Current session ID.
Return Value
Type:
ActionResult<SessionData>The operation completed successfully. The payload contains a
SessionData object.
See Also