Table of Contents

Class FoldersRequestBuilder

Namespace
Autodesk.DataManagement.Data.V1.Projects.Item.Folders
Assembly
Autodesk.DataManagement.dll

Builds and executes requests for operations under \data\v1\projects{project_id}\folders

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

Constructors

FoldersRequestBuilder(Dictionary<string, object>, IRequestAdapter)

Instantiates a new FoldersRequestBuilder and sets the default values.

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

FoldersRequestBuilder(string, IRequestAdapter)

Instantiates a new FoldersRequestBuilder and sets the default values.

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

Properties

this[string]

Gets an item from the Autodesk.DataManagement.data.v1.projects.item.folders.item collection

public WithFolder_ItemRequestBuilder this[string position] { get; }

Parameters

position string

The unique identifier of a folder.

Property Value

WithFolder_ItemRequestBuilder

A WithFolder_ItemRequestBuilder

Methods

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

Creates a new folder. To delete and restore folders, use the PATCH projects/:project_id/folders/:folder_id endpoint.BIM 360 and ACCTo access Docs folders using the Data Management API you need to provision your app in the Account Administrator portal. For more details, see the Manage Access to Docs tutorial.The number of subfolder levels is limited to 25.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<Folder?> PostAsync(CreateFolder body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)

Parameters

body CreateFolder

Describe the folder to be created.

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<Folder>

A Folder

Exceptions

Folder400Error

When receiving a 400 status code

Folder403Error

When receiving a 403 status code

Folder404Error

When receiving a 404 status code

Folder409Error

When receiving a 409 status code

Folder423Error

When receiving a 423 status code

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

Creates a new folder. To delete and restore folders, use the PATCH projects/:project_id/folders/:folder_id endpoint.BIM 360 and ACCTo access Docs folders using the Data Management API you need to provision your app in the Account Administrator portal. For more details, see the Manage Access to Docs tutorial.The number of subfolder levels is limited to 25.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 ToPostRequestInformation(CreateFolder body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null)

Parameters

body CreateFolder

Describe the folder to be created.

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

Parameters

rawUrl string

The raw URL to use for the request builder.

Returns

FoldersRequestBuilder

A FoldersRequestBuilder