Table of Contents

Class UsersImportRequestBuilder

Namespace
Autodesk.ACC.AccountAdmin.Accounts.Item.UsersImport
Assembly
Autodesk.ACC.AccountAdmin.dll

Builds and executes requests for operations under \accounts{accountId}\users:import

public class UsersImportRequestBuilder : BaseRequestBuilder
Inheritance
BaseRequestBuilder
UsersImportRequestBuilder
Inherited Members
BaseRequestBuilder.PathParameters
BaseRequestBuilder.RequestAdapter
BaseRequestBuilder.UrlTemplate

Constructors

UsersImportRequestBuilder(Dictionary<string, object>, IRequestAdapter)

Instantiates a new UsersImportRequestBuilder and sets the default values.

public UsersImportRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter)

Parameters

pathParameters Dictionary<string, object>

Path parameters for the request

requestAdapter IRequestAdapter

The request adapter to use to execute the requests.

UsersImportRequestBuilder(string, IRequestAdapter)

Instantiates a new UsersImportRequestBuilder and sets the default values.

public UsersImportRequestBuilder(string rawUrl, IRequestAdapter requestAdapter)

Parameters

rawUrl string

The raw URL to use for the request builder.

requestAdapter IRequestAdapter

The request adapter to use to execute the requests.

Methods

PostAsUsersImportPostResponseAsync(UsersImportPostRequestBody, Action<RequestConfiguration<DefaultQueryParameters>>?, CancellationToken)

Private Use - Add multiple users to the account at once. Can add up to 200 users per request.

public Task<UsersImportPostResponse?> PostAsUsersImportPostResponseAsync(UsersImportPostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)

Parameters

body UsersImportPostRequestBody

The request body

requestConfiguration Action<RequestConfiguration<DefaultQueryParameters>>

Configuration for the request such as headers, query parameters, and middleware options.

cancellationToken CancellationToken

Cancellation token to use when cancelling requests

Returns

Task<UsersImportPostResponse>

A UsersImportPostResponse

Exceptions

ValidationError

When receiving a 400 status code

Error

When receiving a 401 status code

Error

When receiving a 403 status code

Error

When receiving a 404 status code

Error

When receiving a 410 status code

Error

When receiving a 412 status code

Error

When receiving a 415 status code

Error

When receiving a 500 status code

Error

When receiving a 503 status code

PostAsync(UsersImportPostRequestBody, Action<RequestConfiguration<DefaultQueryParameters>>?, CancellationToken)

Private Use - Add multiple users to the account at once. Can add up to 200 users per request.

[Obsolete("This method is obsolete. Use PostAsUsersImportPostResponseAsync instead.")]
public Task<UsersImportResponse?> PostAsync(UsersImportPostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)

Parameters

body UsersImportPostRequestBody

The request body

requestConfiguration Action<RequestConfiguration<DefaultQueryParameters>>

Configuration for the request such as headers, query parameters, and middleware options.

cancellationToken CancellationToken

Cancellation token to use when cancelling requests

Returns

Task<UsersImportResponse>

A UsersImportResponse

Exceptions

ValidationError

When receiving a 400 status code

Error

When receiving a 401 status code

Error

When receiving a 403 status code

Error

When receiving a 404 status code

Error

When receiving a 410 status code

Error

When receiving a 412 status code

Error

When receiving a 415 status code

Error

When receiving a 500 status code

Error

When receiving a 503 status code

ToPostRequestInformation(UsersImportPostRequestBody, Action<RequestConfiguration<DefaultQueryParameters>>?)

Private Use - Add multiple users to the account at once. Can add up to 200 users per request.

public RequestInformation ToPostRequestInformation(UsersImportPostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null)

Parameters

body UsersImportPostRequestBody

The request body

requestConfiguration Action<RequestConfiguration<DefaultQueryParameters>>

Configuration for the request such as headers, query parameters, and middleware options.

Returns

RequestInformation

A Microsoft.Kiota.Abstractions.RequestInformation

WithUrl(string)

Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.

public UsersImportRequestBuilder WithUrl(string rawUrl)

Parameters

rawUrl string

The raw URL to use for the request builder.

Returns

UsersImportRequestBuilder

A UsersImportRequestBuilder