Class WithItem_ItemRequestBuilder
- Assembly
- Autodesk.DataManagement.dll
Builds and executes requests for operations under \data\v1\projects{project_id}\items{item_id}
public class WithItem_ItemRequestBuilder : BaseRequestBuilder
- Inheritance
-
BaseRequestBuilderWithItem_ItemRequestBuilder
- Inherited Members
-
BaseRequestBuilder.PathParametersBaseRequestBuilder.RequestAdapterBaseRequestBuilder.UrlTemplate
Constructors
WithItem_ItemRequestBuilder(Dictionary<string, object>, IRequestAdapter)
Instantiates a new WithItem_ItemRequestBuilder and sets the default values.
public WithItem_ItemRequestBuilder(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.
WithItem_ItemRequestBuilder(string, IRequestAdapter)
Instantiates a new WithItem_ItemRequestBuilder and sets the default values.
public WithItem_ItemRequestBuilder(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
Parent
The parent property
public ParentRequestBuilder Parent { get; }
Property Value
Refs
The refs property
public RefsRequestBuilder Refs { get; }
Property Value
Relationships
The relationships property
public RelationshipsRequestBuilder Relationships { get; }
Property Value
Tip
The tip property
public TipRequestBuilder Tip { get; }
Property Value
Versions
The versions property
public VersionsRequestBuilder Versions { get; }
Property Value
Methods
GetAsync(Action<RequestConfiguration<WithItem_ItemRequestBuilderGetQueryParameters>>?, CancellationToken)
Retrieves metadata for a specified item. Items represent word documents, fusion design files, drawings, spreadsheets, etc.Notes:The tip version for the item is included in the included array of the payload.To retrieve metadata for multiple items, see the ListItems command.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?> GetAsync(Action<RequestConfiguration<WithItem_ItemRequestBuilder.WithItem_ItemRequestBuilderGetQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)
Parameters
requestConfiguration
Action<RequestConfiguration<WithItem_ItemRequestBuilder.WithItem_ItemRequestBuilderGetQueryParameters>>Configuration for the request such as headers, query parameters, and middleware options.
cancellationToken
CancellationTokenCancellation token to use when cancelling requests
Returns
Exceptions
- Item400Error
When receiving a 400 status code
- Item403Error
When receiving a 403 status code
- Item404Error
When receiving a 404 status code
PatchAsync(ItemRequest, Action<RequestConfiguration<DefaultQueryParameters>>?, CancellationToken)
Updates the properties of the given item_id object.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?> PatchAsync(ItemRequest body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)
Parameters
body
ItemRequestDescribe the item to be patched.
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
- Item400Error
When receiving a 400 status code
- Item403Error
When receiving a 403 status code
- Item404Error
When receiving a 404 status code
- Item423Error
When receiving a 423 status code
ToGetRequestInformation(Action<RequestConfiguration<WithItem_ItemRequestBuilderGetQueryParameters>>?)
Retrieves metadata for a specified item. Items represent word documents, fusion design files, drawings, spreadsheets, etc.Notes:The tip version for the item is included in the included array of the payload.To retrieve metadata for multiple items, see the ListItems command.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<WithItem_ItemRequestBuilder.WithItem_ItemRequestBuilderGetQueryParameters>>? requestConfiguration = null)
Parameters
requestConfiguration
Action<RequestConfiguration<WithItem_ItemRequestBuilder.WithItem_ItemRequestBuilderGetQueryParameters>>Configuration for the request such as headers, query parameters, and middleware options.
Returns
- RequestInformation
A Microsoft.Kiota.Abstractions.RequestInformation
ToPatchRequestInformation(ItemRequest, Action<RequestConfiguration<DefaultQueryParameters>>?)
Updates the properties of the given item_id object.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 ToPatchRequestInformation(ItemRequest body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null)
Parameters
body
ItemRequestDescribe the item to be patched.
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 WithItem_ItemRequestBuilder WithUrl(string rawUrl)
Parameters
rawUrl
stringThe raw URL to use for the request builder.