IImports.PostImportWithHttpMessagesAsync Method (String, String, ImportInfo, Dictionary<String, List<String>>, CancellationToken)
Creates a new import using the specified import info
Namespace: Microsoft.PowerBI.Api.Beta
Assembly: Microsoft.PowerBI.Api (in Microsoft.PowerBI.Api.dll)
Syntax
Task<HttpOperationResponse<Import>> PostImportWithHttpMessagesAsync(
string collectionName,
string workspaceId,
ImportInfo importInfo,
Dictionary<string, List<string>> customHeaders = null,
CancellationToken cancellationToken = null
)
Parameters
collectionName
Type: System.StringThe workspace collection name
workspaceId
Type: System.StringThe workspace id
importInfo
Type: Microsoft.PowerBI.Api.Beta.Models.ImportInfoThe import to post
customHeaders
Type: System.Collections.Generic.Dictionary<String, List<String>>The headers that will be added to request.
cancellationToken
Type: System.Threading.CancellationTokenThe cancellation token.
Return Value
Type: System.Threading.Tasks.Task<HttpOperationResponse<Import>>
See Also
IImports Interface
Microsoft.PowerBI.Api.Beta Namespace
Return to top