Table of Contents

Class ValuesRequestBuilder

Namespace
Autodesk.ACC.ModelProperties.V2.Projects.Item.CustomProperties.Lineages.Item.Values
Assembly
Autodesk.ACC.ModelProperties.dll

Builds and executes requests for operations under \v2\projects{projectId}\custom-properties\lineages{lineageUrn}\values

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

Constructors

ValuesRequestBuilder(Dictionary<string, object>, IRequestAdapter)

Instantiates a new ValuesRequestBuilder and sets the default values.

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

ValuesRequestBuilder(string, IRequestAdapter)

Instantiates a new ValuesRequestBuilder and sets the default values.

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

PatchAsync(List<CustomPropertyChangeSet>, Action<RequestConfiguration<DefaultQueryParameters>>?, CancellationToken)

Set Custom Property values for specified Design Entities.The success case returns 200 if at least some of the writes were successful. The response bodymust also be checked to see if any partial failures occurred.NOTE: There is no "get" endpoint to read custom property values. Values For Custom Propertieswill be combined with the model properties into an index. Therefore, the user can query andfilter any Custom Properties using the existing Model Properties API query endpoints.

public Task<BulkCustomPropertiesUpdateResult?> PatchAsync(List<CustomPropertyChangeSet> body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)

Parameters

body List<CustomPropertyChangeSet>

List of specified Custom Property values to set for a list of Design Elements.

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

A BulkCustomPropertiesUpdateResult

Exceptions

ResourceError

When receiving a 401 status code

ResourceError

When receiving a 404 status code

ToPatchRequestInformation(List<CustomPropertyChangeSet>, Action<RequestConfiguration<DefaultQueryParameters>>?)

Set Custom Property values for specified Design Entities.The success case returns 200 if at least some of the writes were successful. The response bodymust also be checked to see if any partial failures occurred.NOTE: There is no "get" endpoint to read custom property values. Values For Custom Propertieswill be combined with the model properties into an index. Therefore, the user can query andfilter any Custom Properties using the existing Model Properties API query endpoints.

public RequestInformation ToPatchRequestInformation(List<CustomPropertyChangeSet> body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null)

Parameters

body List<CustomPropertyChangeSet>

List of specified Custom Property values to set for a list of Design Elements.

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

Parameters

rawUrl string

The raw URL to use for the request builder.

Returns

ValuesRequestBuilder

A ValuesRequestBuilder