Class AttachmentsRequestBuilder
- Namespace
- Autodesk.ACC.RFIs.V2.Containers.Item.Rfis.Item.Attachments
- Assembly
- Autodesk.ACC.RFIs.dll
Builds and executes requests for operations under \v2\containers{containerId}\rfis{rfiId}\attachments
public class AttachmentsRequestBuilder : BaseRequestBuilder
- Inheritance
-
BaseRequestBuilderAttachmentsRequestBuilder
- Inherited Members
-
BaseRequestBuilder.PathParametersBaseRequestBuilder.RequestAdapterBaseRequestBuilder.UrlTemplate
Constructors
AttachmentsRequestBuilder(Dictionary<string, object>, IRequestAdapter)
Instantiates a new AttachmentsRequestBuilder and sets the default values.
public AttachmentsRequestBuilder(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.
AttachmentsRequestBuilder(string, IRequestAdapter)
Instantiates a new AttachmentsRequestBuilder and sets the default values.
public AttachmentsRequestBuilder(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.ACC.RFIs.v2.containers.item.rfis.item.attachments.item collection
public WithAttachmentItemRequestBuilder this[string position] { get; }
Parameters
position
stringThe id of the attachment to find (uuid)
Property Value
Methods
GetAsync(Action<RequestConfiguration<AttachmentsRequestBuilderGetQueryParameters>>?, CancellationToken)
Retrieves information about all the attachments in a project associated with a specific RFI... include:: ../../../../_snippets/forward-compatible.rst
public Task<AttachmentList?> GetAsync(Action<RequestConfiguration<AttachmentsRequestBuilder.AttachmentsRequestBuilderGetQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)
Parameters
requestConfiguration
Action<RequestConfiguration<AttachmentsRequestBuilder.AttachmentsRequestBuilderGetQueryParameters>>Configuration for the request such as headers, query parameters, and middleware options.
cancellationToken
CancellationTokenCancellation token to use when cancelling requests
Returns
Exceptions
- ErrorResponse
When receiving a 400 status code
PostAsync(CreateAttachmentRequestBIMDefinition, Action<RequestConfiguration<DefaultQueryParameters>>?, CancellationToken)
Adds an attachment to an RFI. You can attach any file that you uploaded to Document Management. Note that we do not currently support attaching local files to an RFI.For more details about adding attachments, see the Upload Attachment tutorial
BIM 360</en/docs/bim360/v1/reference/tutorials/attach-BIM-360-files-to-rfi/>
_ ACC</en/docs/acc/v1/reference/tutorials/attach-BIM-360-files-to-rfi/>
_ ... include:: ../../../../_snippets/not-forward-compatible.rst
public Task<Attachment?> PostAsync(CreateAttachmentRequestBIMDefinition body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)
Parameters
body
CreateAttachmentRequestBIMDefinitionThe request body
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
- ErrorResponse
When receiving a 400 status code
ToGetRequestInformation(Action<RequestConfiguration<AttachmentsRequestBuilderGetQueryParameters>>?)
Retrieves information about all the attachments in a project associated with a specific RFI... include:: ../../../../_snippets/forward-compatible.rst
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<AttachmentsRequestBuilder.AttachmentsRequestBuilderGetQueryParameters>>? requestConfiguration = null)
Parameters
requestConfiguration
Action<RequestConfiguration<AttachmentsRequestBuilder.AttachmentsRequestBuilderGetQueryParameters>>Configuration for the request such as headers, query parameters, and middleware options.
Returns
- RequestInformation
A Microsoft.Kiota.Abstractions.RequestInformation
ToPostRequestInformation(CreateAttachmentRequestBIMDefinition, Action<RequestConfiguration<DefaultQueryParameters>>?)
Adds an attachment to an RFI. You can attach any file that you uploaded to Document Management. Note that we do not currently support attaching local files to an RFI.For more details about adding attachments, see the Upload Attachment tutorial
BIM 360</en/docs/bim360/v1/reference/tutorials/attach-BIM-360-files-to-rfi/>
_ ACC</en/docs/acc/v1/reference/tutorials/attach-BIM-360-files-to-rfi/>
_ ... include:: ../../../../_snippets/not-forward-compatible.rst
public RequestInformation ToPostRequestInformation(CreateAttachmentRequestBIMDefinition body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null)
Parameters
body
CreateAttachmentRequestBIMDefinitionThe request body
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 AttachmentsRequestBuilder WithUrl(string rawUrl)
Parameters
rawUrl
stringThe raw URL to use for the request builder.