Table of Contents

Class TopFoldersRequestBuilder

Namespace
Autodesk.DataManagement.Project.V1.Hubs.Item.Projects.Item.TopFolders
Assembly
Autodesk.DataManagement.dll

Builds and executes requests for operations under \project\v1\hubs{hub_id}\projects{project_id}\topFolders

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

Constructors

TopFoldersRequestBuilder(Dictionary<string, object>, IRequestAdapter)

Instantiates a new TopFoldersRequestBuilder and sets the default values.

public TopFoldersRequestBuilder(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.

TopFoldersRequestBuilder(string, IRequestAdapter)

Instantiates a new TopFoldersRequestBuilder and sets the default values.

public TopFoldersRequestBuilder(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

GetAsync(Action<RequestConfiguration<TopFoldersRequestBuilderGetQueryParameters>>?, CancellationToken)

Returns the details of the highest level folders the user has access to for a given project. The user must have at least read access to the folders.If the user is a Project Admin, it returns all top level folders in the project. Otherwise, it returns all the highest level folders in the folder hierarchy the user has access to.Note that when users have access to a folder, access is automatically granted to its subfolders.New! Autodesk Construction Cloud platform (ACC). Note that this endpoint is compatible with ACC projects. For more information about the Autodesk Construction Cloud APIs, see the Autodesk Construction Cloud documentation.

public Task<TopFolders?> GetAsync(Action<RequestConfiguration<TopFoldersRequestBuilder.TopFoldersRequestBuilderGetQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)

Parameters

requestConfiguration Action<RequestConfiguration<TopFoldersRequestBuilder.TopFoldersRequestBuilderGetQueryParameters>>

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

cancellationToken CancellationToken

Cancellation token to use when cancelling requests

Returns

Task<TopFolders>

A TopFolders

Exceptions

TopFolders400Error

When receiving a 400 status code

TopFolders403Error

When receiving a 403 status code

TopFolders404Error

When receiving a 404 status code

ToGetRequestInformation(Action<RequestConfiguration<TopFoldersRequestBuilderGetQueryParameters>>?)

Returns the details of the highest level folders the user has access to for a given project. The user must have at least read access to the folders.If the user is a Project Admin, it returns all top level folders in the project. Otherwise, it returns all the highest level folders in the folder hierarchy the user has access to.Note that when users have access to a folder, access is automatically granted to its subfolders.New! Autodesk Construction Cloud platform (ACC). Note that this endpoint is compatible with ACC projects. For more information about the Autodesk Construction Cloud APIs, see the Autodesk Construction Cloud documentation.

public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<TopFoldersRequestBuilder.TopFoldersRequestBuilderGetQueryParameters>>? requestConfiguration = null)

Parameters

requestConfiguration Action<RequestConfiguration<TopFoldersRequestBuilder.TopFoldersRequestBuilderGetQueryParameters>>

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 TopFoldersRequestBuilder WithUrl(string rawUrl)

Parameters

rawUrl string

The raw URL to use for the request builder.

Returns

TopFoldersRequestBuilder

A TopFoldersRequestBuilder