Table of Contents

Class ItemsRequestBuilder

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

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

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

Constructors

ItemsRequestBuilder(Dictionary<string, object>, IRequestAdapter)

Instantiates a new ItemsRequestBuilder and sets the default values.

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

ItemsRequestBuilder(string, IRequestAdapter)

Instantiates a new ItemsRequestBuilder and sets the default values.

public ItemsRequestBuilder(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.items.item collection

public WithItem_ItemRequestBuilder this[string position] { get; }

Parameters

position string

The unique identifier of an item.

Property Value

WithItem_ItemRequestBuilder

A WithItem_ItemRequestBuilder

Methods

PostAsync(CreateItem, Action<RequestConfiguration<ItemsRequestBuilderPostQueryParameters>>?, CancellationToken)

Creates the first version of a file (item). To create additional versions of an item, use POST versions.Before you create the first version you need to create a storage location for the file, and upload the file to the storage object. For more details about the workflow, see the tutorial on uploading a file.This endpoint also copies versions of items to other folders in the same project. The endpoint creates a new item and a first version of the item in the target folder. You cannot copy versions of items across different projects and accounts.To copy versions of items to existng items in other folders, use POST versions. POST versions creates a new version of the existing item in the target folder.Note that to access BIM 360 Docs files using the Data Management API you need to provision your app in the BIM 360 Account Administrator portal. For more details, see the Manage Access to Docs tutorial.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<Item?> PostAsync(CreateItem body, Action<RequestConfiguration<ItemsRequestBuilder.ItemsRequestBuilderPostQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)

Parameters

body CreateItem

Describe the item to be created.

requestConfiguration Action<RequestConfiguration<ItemsRequestBuilder.ItemsRequestBuilderPostQueryParameters>>

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

cancellationToken CancellationToken

Cancellation token to use when cancelling requests

Returns

Task<Item>

A Item

Exceptions

Item400Error

When receiving a 400 status code

Item403Error

When receiving a 403 status code

Item404Error

When receiving a 404 status code

Item409Error

When receiving a 409 status code

Item423Error

When receiving a 423 status code

ToPostRequestInformation(CreateItem, Action<RequestConfiguration<ItemsRequestBuilderPostQueryParameters>>?)

Creates the first version of a file (item). To create additional versions of an item, use POST versions.Before you create the first version you need to create a storage location for the file, and upload the file to the storage object. For more details about the workflow, see the tutorial on uploading a file.This endpoint also copies versions of items to other folders in the same project. The endpoint creates a new item and a first version of the item in the target folder. You cannot copy versions of items across different projects and accounts.To copy versions of items to existng items in other folders, use POST versions. POST versions creates a new version of the existing item in the target folder.Note that to access BIM 360 Docs files using the Data Management API you need to provision your app in the BIM 360 Account Administrator portal. For more details, see the Manage Access to Docs tutorial.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(CreateItem body, Action<RequestConfiguration<ItemsRequestBuilder.ItemsRequestBuilderPostQueryParameters>>? requestConfiguration = null)

Parameters

body CreateItem

Describe the item to be created.

requestConfiguration Action<RequestConfiguration<ItemsRequestBuilder.ItemsRequestBuilderPostQueryParameters>>

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

Parameters

rawUrl string

The raw URL to use for the request builder.

Returns

ItemsRequestBuilder

A ItemsRequestBuilder