Class FoldersRequestBuilder
Builds and executes requests for operations under \data\v1\projects{project_id}\folders
public class FoldersRequestBuilder : BaseRequestBuilder
- Inheritance
-
BaseRequestBuilderFoldersRequestBuilder
- Inherited Members
-
BaseRequestBuilder.PathParametersBaseRequestBuilder.RequestAdapterBaseRequestBuilder.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
IRequestAdapterThe 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
stringThe raw URL to use for the request builder.
requestAdapter
IRequestAdapterThe 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
stringThe unique identifier of a folder.
Property Value
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
CreateFolderDescribe the folder to be created.
requestConfiguration
Action<RequestConfiguration<DefaultQueryParameters>>Configuration for the request such as headers, query parameters, and middleware options.
cancellationToken
CancellationTokenCancellation token to use when cancelling requests
Returns
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
CreateFolderDescribe 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
stringThe raw URL to use for the request builder.