Open this page in the API Guide

TokenController.CreateToken Method

Creates a token.

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(410)]
[ProducesResponseTypeAttribute(440)]
public ActionResult<TokenDefinitionData> CreateToken(
	[FromBodyAttribute] CreateTokenOptions tokenOptions,
	Guid? sessionId = null
)

Parameters

tokenOptions
Type: Dundas.BI.WebApi.Models.CreateTokenOptions
The CreateTokenOptions class containing the information needed to create a token.
sessionId (Optional)
Type: System.Nullable<Guid>
Current session ID.

Return Value

Type: ActionResult<TokenDefinitionData>
The operation completed successfully. The payload contains a TokenDefinitionData object.
See Also