AccountController.AddToTenants Method |
Adds the account to the specified tenants.
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("AddToTenants/{id}")]
[ProducesResponseTypeAttribute(403)]
[ProducesResponseTypeAttribute(405)]
[ProducesResponseTypeAttribute(410)]
[ProducesResponseTypeAttribute(440)]
public ActionResult<List<KeyValuePairData>> AddToTenants(
[FromRouteAttribute] Guid id,
[FromBodyAttribute] UpdateTenantMembershipOptions options,
[FromQueryAttribute] Guid? sessionId = null
)
<HttpPostAttribute("AddToTenants/{id}")>
<ProducesResponseTypeAttribute(403)>
<ProducesResponseTypeAttribute(405)>
<ProducesResponseTypeAttribute(410)>
<ProducesResponseTypeAttribute(440)>
Public Function AddToTenants (
<FromRouteAttribute> id As Guid,
<FromBodyAttribute> options As UpdateTenantMembershipOptions,
<FromQueryAttribute> Optional sessionId As Guid? = Nothing
) As ActionResult(Of List(Of KeyValuePairData))
public:
[HttpPostAttribute(L"AddToTenants/{id}")]
[ProducesResponseTypeAttribute(403)]
[ProducesResponseTypeAttribute(405)]
[ProducesResponseTypeAttribute(410)]
[ProducesResponseTypeAttribute(440)]
ActionResult<List<KeyValuePairData^>^>^ AddToTenants(
[FromRouteAttribute] Guid id,
[FromBodyAttribute] UpdateTenantMembershipOptions^ options,
[FromQueryAttribute] Nullable<Guid> sessionId = nullptr
)
[<HttpPostAttribute("AddToTenants/{id}")>]
[<ProducesResponseTypeAttribute(403)>]
[<ProducesResponseTypeAttribute(405)>]
[<ProducesResponseTypeAttribute(410)>]
[<ProducesResponseTypeAttribute(440)>]
member AddToTenants :
[<FromRouteAttribute>] id : Guid *
[<FromBodyAttribute>] options : UpdateTenantMembershipOptions *
[<FromQueryAttribute>] ?sessionId : Nullable<Guid>
(* Defaults:
let _sessionId = defaultArg sessionId null
*)
-> ActionResult<List<KeyValuePairData>>
Parameters
- id
- Type: System.Guid
The ID of the account. - options
- Type: Dundas.BI.WebApi.Models.UpdateTenantMembershipOptions
The options. - sessionId (Optional)
- Type: System.Nullable<Guid>
The current session ID.
Return Value
Type:
ActionResult<List<KeyValuePairData>>
The operation completed successfully. The payload is a list of key/value pairs; the keys being tenant IDs, and the values being Booleans
indicating whether the account was successfully added to the corresponding tenant. If the account was already a member of the tenant,
the value of the Boolean will be
false.
See Also