Open this page in the API Guide

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
)

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