Table of Contents

Class ProjectsRequestBuilder

Namespace
Autodesk.ACC.AccountAdmin.Projects
Assembly
Autodesk.ACC.AccountAdmin.dll

Builds and executes requests for operations under \projects

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

Constructors

ProjectsRequestBuilder(Dictionary<string, object>, IRequestAdapter)

Instantiates a new ProjectsRequestBuilder and sets the default values.

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

ProjectsRequestBuilder(string, IRequestAdapter)

Instantiates a new ProjectsRequestBuilder and sets the default values.

public ProjectsRequestBuilder(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[Guid]

Gets an item from the Autodesk.ACC.AccountAdmin.projects.item collection

public WithProjectItemRequestBuilder this[Guid position] { get; }

Parameters

position Guid

The project ID. This corresponds to project ID in the Data Management API </en/docs/data/v2/>_. To convert a project ID in the Data Management API into a project ID in the BIM 360 API you need to remove the "b." prefix. For example, a project ID of b.\a4be0c34a-4ab7 translates to a project ID of a4be0c34a-4ab7.

Property Value

WithProjectItemRequestBuilder

A WithProjectItemRequestBuilder

this[string]

Gets an item from the Autodesk.ACC.AccountAdmin.projects.item collection

[Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")]
public WithProjectItemRequestBuilder this[string position] { get; }

Parameters

position string

The project ID. This corresponds to project ID in the Data Management API </en/docs/data/v2/>_. To convert a project ID in the Data Management API into a project ID in the BIM 360 API you need to remove the "b." prefix. For example, a project ID of b.\a4be0c34a-4ab7 translates to a project ID of a4be0c34a-4ab7.

Property Value

WithProjectItemRequestBuilder

A WithProjectItemRequestBuilder

Methods

GetAsProjectsGetResponseAsync(Action<RequestConfiguration<ProjectsRequestBuilderGetQueryParameters>>?, CancellationToken)

Private Use - Returns a list of projects for a user. Can return up to 200 projects per request. Only projects that the user participates in will be returned. For Account Admins to see all projects in the account, please use GET /v1/accounts/:a_id/projects

public Task<ProjectsGetResponse?> GetAsProjectsGetResponseAsync(Action<RequestConfiguration<ProjectsRequestBuilder.ProjectsRequestBuilderGetQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)

Parameters

requestConfiguration Action<RequestConfiguration<ProjectsRequestBuilder.ProjectsRequestBuilderGetQueryParameters>>

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

cancellationToken CancellationToken

Cancellation token to use when cancelling requests

Returns

Task<ProjectsGetResponse>

A ProjectsGetResponse

Exceptions

ValidationError

When receiving a 400 status code

Error

When receiving a 401 status code

Error

When receiving a 403 status code

Error

When receiving a 404 status code

Error

When receiving a 406 status code

Error

When receiving a 410 status code

Error

When receiving a 500 status code

Error

When receiving a 503 status code

GetAsync(Action<RequestConfiguration<ProjectsRequestBuilderGetQueryParameters>>?, CancellationToken)

Private Use - Returns a list of projects for a user. Can return up to 200 projects per request. Only projects that the user participates in will be returned. For Account Admins to see all projects in the account, please use GET /v1/accounts/:a_id/projects

[Obsolete("This method is obsolete. Use GetAsProjectsGetResponseAsync instead.")]
public Task<ProjectsResponse?> GetAsync(Action<RequestConfiguration<ProjectsRequestBuilder.ProjectsRequestBuilderGetQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)

Parameters

requestConfiguration Action<RequestConfiguration<ProjectsRequestBuilder.ProjectsRequestBuilderGetQueryParameters>>

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

cancellationToken CancellationToken

Cancellation token to use when cancelling requests

Returns

Task<ProjectsResponse>

A ProjectsResponse

Exceptions

ValidationError

When receiving a 400 status code

Error

When receiving a 401 status code

Error

When receiving a 403 status code

Error

When receiving a 404 status code

Error

When receiving a 406 status code

Error

When receiving a 410 status code

Error

When receiving a 500 status code

Error

When receiving a 503 status code

ToGetRequestInformation(Action<RequestConfiguration<ProjectsRequestBuilderGetQueryParameters>>?)

Private Use - Returns a list of projects for a user. Can return up to 200 projects per request. Only projects that the user participates in will be returned. For Account Admins to see all projects in the account, please use GET /v1/accounts/:a_id/projects

public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<ProjectsRequestBuilder.ProjectsRequestBuilderGetQueryParameters>>? requestConfiguration = null)

Parameters

requestConfiguration Action<RequestConfiguration<ProjectsRequestBuilder.ProjectsRequestBuilderGetQueryParameters>>

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

Parameters

rawUrl string

The raw URL to use for the request builder.

Returns

ProjectsRequestBuilder

A ProjectsRequestBuilder