Class DataManagementClient
Namespace: Autodesk.DataManagement
Assembly: Autodesk.DataManagement.dll
Represents a collection of functions to interact with the API endpoints
public class DataManagementClient : BaseClient
Inheritance
object ← BaseClient ← DataManagementClient
Inherited Members
BaseClient.AuthenticationProvider, object.Equals(object) , object.Equals(object, object) , object.GetHashCode() , object.GetType() , object.MemberwiseClone() , object.ReferenceEquals(object, object) , object.ToString()
Constructors
DataManagementClient(SDKManager, IAuthenticationProvider)
Operation: Initializes a new instance of the
public DataManagementClient(SDKManager sdkManager = null, IAuthenticationProvider authenticationProvider = null)
Parameters
sdkManager
SDKManager
The SDK manager.
authenticationProvider
IAuthenticationProvider
The authentication provider.
Methods
CreateDownloadAsync(string, DownloadPayload, string, string, bool)
Operation: Create Download
public Task<CreatedDownload> CreateDownloadAsync(string projectId, DownloadPayload downloadPayload, string xUserId = null, string accessToken = null, bool throwOnError = true)
Parameters
projectId
string
The unique identifier of a project.
For BIM 360 Docs and ACC Docs, a hub ID corresponds to an Account ID. To convert a BIM 360 or ACC Account ID to a hub ID, prefix the Account ID with b.
. For example, an Account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert an ACC or BIM 360 project ID to a Data Management project ID prefix the ACC or BIM 360 project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
downloadPayload
DownloadPayload
(optional)
xUserId
string
In a two-legged authentication context, an app has access to all users specified by the administrator in the SaaS integrations UI. By providing this parameter, the API call will be limited to act only on behalf of the specified user. (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
An object that represents the response to a Create Download request.
Remarks
Kicks off a job to generate the specified download format of the version. Once the job completes, the specified format becomes available for download.
Exceptions
Thrown when the SDK fails to make an API call.
CreateFolderAsync(string, FolderPayload, string, string, bool)
Operation: Create a Folder
public Task<Folder> CreateFolderAsync(string projectId, FolderPayload folderPayload, string xUserId = null, string accessToken = null, bool throwOnError = true)
Parameters
projectId
string
The unique identifier of a project.
For BIM 360 Docs and ACC Docs, a hub ID corresponds to an Account ID. To convert a BIM 360 or ACC Account ID to a hub ID, prefix the Account ID with b.
. For example, an Account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert an ACC or BIM 360 project ID to a Data Management project ID prefix the ACC or BIM 360 project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
folderPayload
FolderPayload
(optional)
xUserId
string
In a two-legged authentication context, an app has access to all users specified by the administrator in the SaaS integrations UI. By providing this parameter, the API call will be limited to act only on behalf of the specified user. (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
An object that represents a folder.
Remarks
Creates a new folder in the specified project. Use the parent
attribute in the request body to specify where in the hierarchy the new folder should be located. Folders can be nested up to 25 levels deep.
Use the Modify a Folder operation to delete and restore folders.
Before you use the Data Management API to access BIM 360 Docs folders, provision your app through the BIM 360 Account Administrator portal. For details, see the Manage Access to Docs tutorial .
Note: This operation supports Autodesk Construction Cloud (ACC) Projects. For more information, see the ACC Platform API documentation .
Exceptions
Thrown when the SDK fails to make an API call.
CreateFolderRelationshipsRefAsync(string, string, RelationshipRefsPayload, string, string, bool)
Operation: Create a Custom Relationship for a Folder
public Task<HttpResponseMessage> CreateFolderRelationshipsRefAsync(string folderId, string projectId, RelationshipRefsPayload relationshipRefsPayload, string xUserId = null, string accessToken = null, bool throwOnError = true)
Parameters
folderId
string
The unique identifier of a folder.
projectId
string
The unique identifier of a project.
For BIM 360 Docs and ACC Docs, a hub ID corresponds to an Account ID. To convert a BIM 360 or ACC Account ID to a hub ID, prefix the Account ID with b.
. For example, an Account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert an ACC or BIM 360 project ID to a Data Management project ID prefix the ACC or BIM 360 project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
relationshipRefsPayload
RelationshipRefsPayload
(optional)
xUserId
string
In a two-legged authentication context, an app has access to all users specified by the administrator in the SaaS integrations UI. By providing this parameter, the API call will be limited to act only on behalf of the specified user. (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
Remarks
Creates a custom relationship between a folder and another resource within the data domain service (folder, item, or version).
Exceptions
Thrown when the SDK fails to make an API call.
CreateItemAsync(string, ItemPayload, string, string, string, bool)
Operation: Create an Item
public Task<CreatedItem> CreateItemAsync(string projectId, ItemPayload itemPayload, string copyFrom = null, string xUserId = null, string accessToken = null, bool throwOnError = true)
Parameters
projectId
string
The unique identifier of a project.
For BIM 360 Docs and ACC Docs, a hub ID corresponds to an Account ID. To convert a BIM 360 or ACC Account ID to a hub ID, prefix the Account ID with b.
. For example, an Account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert an ACC or BIM 360 project ID to a Data Management project ID prefix the ACC or BIM 360 project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
itemPayload
ItemPayload
(optional)
copyFrom
string
The Version ID (URN) of the version to copy from.
Note: This parameter is relevant only for copying files to BIM 360 Docs.
For information on how to find the URN, see the initial steps of the Download a File tutorial.
You can only copy files to the Plans folder or to subfolders of the Plans folder with an item:autodesk.bim360:Document
item extension type. You can only copy files to the Project Files folder or to subfolders of the Project Files folder with an item:autodesk.bim360:File
item extension type.
To verify an item’s extension type, use the Get an Item operation, and check the attributes.extension.type
attribute.
Note that if you copy a file to the Plans folder or to a subfolder of the Plans folder, the copied file inherits the permissions of the source file. For example, if users of your app did not have permission to download files in the source folder, but does have permission to download files in the target folder, they will not be able to download the copied file.
Note that you cannot copy a file while it is being uploaded, updated, or copied. To verify the current process state of a file, call the Get an Item operation , and check the attributes.extension.data.processState
attribute. (optional)
xUserId
string
In a two-legged authentication context, the app has access to all users specified by the administrator in the SaaS integrations UI. By providing this parameter, the API call will be limited to act on behalf of only the user specified.
Note that for a three-legged OAuth flow or for a two-legged OAuth flow with user impersonation (x-user-id
), the users of your app must have permission to upload files to the specified parent folder (data.attributes.relationships.parent.data.id
).
For copying files, users of your app must have permission to view the source folder.
For information about managing and verifying folder permissions for BIM 360 Docs, see the section on Managing Folder Permissions .’ (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
Task <CreatedItem >
An object that represents an item.
Remarks
Creates the first version of a file (item). To create additional versions of an item, use POST versions.
Before you create the first version of an item, you must create a placeholder for the file, and upload the file to the placeholder. For more details about the workflow, see the tutorial on uploading a file.
This operation also allows you to create a new item by copying a specific version of an existing item to another folder. The copied version becomes the first version of the new item in the target folder.
Note: You cannot copy versions of items across different projects and accounts.
Use the Create Version operation with the copyFrom
parameter if you want to create a new version of an item by copying a specific version of another item.
Before you use the Data Management API to access BIM 360 Docs files, you must provision your app through the BIM 360 Account Administrator portal. For details, see the Manage Access to Docs tutorial .
Note: This operation supports Autodesk Construction Cloud (ACC) Projects. For more information, see the ACC Platform API documentation .
Exceptions
Thrown when the SDK fails to make an API call.
CreateItemRelationshipsRefAsync(string, string, RelationshipRefsPayload, string, string, bool)
Operation: Create a Custom Relationship for an Item
public Task<HttpResponseMessage> CreateItemRelationshipsRefAsync(string projectId, string itemId, RelationshipRefsPayload relationshipRefsPayload, string xUserId = null, string accessToken = null, bool throwOnError = true)
Parameters
projectId
string
The unique identifier of a project.
For BIM 360 Docs and ACC Docs, a hub ID corresponds to an Account ID. To convert a BIM 360 or ACC Account ID to a hub ID, prefix the Account ID with b.
. For example, an Account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert an ACC or BIM 360 project ID to a Data Management project ID prefix the ACC or BIM 360 project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
itemId
string
The unique identifier of an item.
relationshipRefsPayload
RelationshipRefsPayload
(optional)
xUserId
string
In a two-legged authentication context, an app has access to all users specified by the administrator in the SaaS integrations UI. By providing this parameter, the API call will be limited to act only on behalf of the specified user. (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
Remarks
Creates a custom relationship between an item and another resource within the data domain service (folder, item, or version).
Exceptions
Thrown when the SDK fails to make an API call.
CreateStorageAsync(string, StoragePayload, string, string, bool)
Operation: Create a Storage Location in OSS
public Task<Storage> CreateStorageAsync(string projectId, StoragePayload storagePayload, string xUserId = null, string accessToken = null, bool throwOnError = true)
Parameters
projectId
string
The unique identifier of a project.
For BIM 360 Docs and ACC Docs, a hub ID corresponds to an Account ID. To convert a BIM 360 or ACC Account ID to a hub ID, prefix the Account ID with b.
. For example, an Account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert an ACC or BIM 360 project ID to a Data Management project ID prefix the ACC or BIM 360 project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
storagePayload
StoragePayload
(optional)
xUserId
string
In a two-legged authentication context, an app has access to all users specified by the administrator in the SaaS integrations UI. By providing this parameter, the API call will be limited to act only on behalf of the specified user. (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
Task of Storage
Remarks
Creates a placeholder for an item or a version of an item in the OSS. Later, you can upload the binary content for the item or version to this storage location.
Note: This operation supports Autodesk Construction Cloud (ACC) Projects. For more information, see the ACC Platform API documentation .
Exceptions
Thrown when the SDK fails to make an API call.
CreateVersionAsync(string, VersionPayload, string, string, string, bool)
Operation: Create a Version
public Task<CreatedVersion> CreateVersionAsync(string projectId, VersionPayload versionPayload, string xUserId = null, string copyFrom = null, string accessToken = null, bool throwOnError = true)
Parameters
projectId
string
The unique identifier of a project.
For BIM 360 Docs and ACC Docs, a hub ID corresponds to an Account ID. To convert a BIM 360 or ACC Account ID to a hub ID, prefix the Account ID with b.
. For example, an Account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert an ACC or BIM 360 project ID to a Data Management project ID prefix the ACC or BIM 360 project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
versionPayload
VersionPayload
(optional)
xUserId
string
In a two-legged authentication context, an app has access to all users specified by the administrator in the SaaS integrations UI. By providing this parameter, the API call will be limited to act only on behalf of the specified user. (optional)
copyFrom
string
The Version ID (URN) of the version to copy from.
Note: This parameter is relevant only for copying files to BIM 360 Docs.
For information on how to find the URN, see the initial steps of the Download a File tutorial.
You can only copy files to the Plans folder or to subfolders of the Plans folder with an item:autodesk.bim360:Document
item extension type. You can only copy files to the Project Files folder or to subfolders of the Project Files folder with an item:autodesk.bim360:File
item extension type.
To verify an item’s extension type, use the Get an Item operation, and check the attributes.extension.type
attribute.
Note that if you copy a file to the Plans folder or to a subfolder of the Plans folder, the copied file inherits the permissions of the source file. For example, if users of your app did not have permission to download files in the source folder, but does have permission to download files in the target folder, they will not be able to download the copied file.
Note that you cannot copy a file while it is being uploaded, updated, or copied. To verify the current process state of a file, call the Get an Item operation , and check the attributes.extension.data.processState
attribute. (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
An object that represents a payload returned upon successful creation of a new version.
Remarks
Creates a new versions of an existing item.
Before creating a new version you must create a storage location for the version in OSS, and upload the file to that location. For more details about the workflow, see the tutorial on uploading a file.
This operation also allows you to create a new version of an item by copying a specific version of an existing item from another folder within the project. The new version becomes the tip version of the item.
Use the Create an Item operation to copy a specific version of an existing item as a new item in another folder.
This operation can also be used to delete files on BIM360 Document Management. For more information, please refer to the delete and restore a file tutorial.
Before you use the Data Management API to access BIM 360 Docs files, you must provision your app through the BIM 360 Account Administrator portal. For details, see the Manage Access to Docs tutorial .
Note: This operation supports Autodesk Construction Cloud (ACC) Projects. For more information, see the ACC Platform API documentation .
Exceptions
Thrown when the SDK fails to make an API call.
CreateVersionRelationshipsRefAsync(string, string, RelationshipRefsPayload, string, string, bool)
Operation: Create a Custom Relationship for a Version
public Task<HttpResponseMessage> CreateVersionRelationshipsRefAsync(string projectId, string versionId, RelationshipRefsPayload relationshipRefsPayload, string xUserId = null, string accessToken = null, bool throwOnError = true)
Parameters
projectId
string
The unique identifier of a project.
For BIM 360 Docs and ACC Docs, a hub ID corresponds to an Account ID. To convert a BIM 360 or ACC Account ID to a hub ID, prefix the Account ID with b.
. For example, an Account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert an ACC or BIM 360 project ID to a Data Management project ID prefix the ACC or BIM 360 project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
versionId
string
The URL encoded unique identifier of a version.
relationshipRefsPayload
RelationshipRefsPayload
(optional)
xUserId
string
In a two-legged authentication context, an app has access to all users specified by the administrator in the SaaS integrations UI. By providing this parameter, the API call will be limited to act only on behalf of the specified user. (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
Remarks
Creates a custom relationship between a version of an item and another resource within the data domain service (folder, item, or version).
Exceptions
Thrown when the SDK fails to make an API call.
ExecuteCheckPermissionAsync(string, CheckPermissionPayload, string, string, bool)
Operation: Execute a Command
public Task<CheckPermission> ExecuteCheckPermissionAsync(string projectId, CheckPermissionPayload checkPermissionPayload, string xUserId = null, string accessToken = null, bool throwOnError = true)
Parameters
projectId
string
The unique identifier of a project.
For BIM 360 Docs and ACC Docs, a hub ID corresponds to an Account ID. To convert a BIM 360 or ACC Account ID to a hub ID, prefix the Account ID with b.
. For example, an Account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert an ACC or BIM 360 project ID to a Data Management project ID prefix the ACC or BIM 360 project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
checkPermissionPayload
CheckPermissionPayload
(optional)
xUserId
string
In a two-legged authentication context, an app has access to all users specified by the administrator in the SaaS integrations UI. By providing this parameter, the API call will be limited to act only on behalf of the specified user. (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
The data
object returned by the CheckPermission command.
Remarks
Executes the command that you specify in the request body. Commands enable you to perform general operations on multiple resources.
For example, you can check whether a user has permission to delete a collection of versions, items, and folders.
The command as well as the input data for the command are specified using the data
object of the request body.
For more information about commands see the Commands section in the Developer’s Guide.
Exceptions
Thrown when the SDK fails to make an API call.
ExecuteGetPublishModelJobAsync(string, PublishModelJobPayload, string, string, bool)
Operation: Execute a Command
public Task<PublishModelJob> ExecuteGetPublishModelJobAsync(string projectId, PublishModelJobPayload publishModelJobPayload, string xUserId = null, string accessToken = null, bool throwOnError = true)
Parameters
projectId
string
The unique identifier of a project.
For BIM 360 Docs and ACC Docs, a hub ID corresponds to an Account ID. To convert a BIM 360 or ACC Account ID to a hub ID, prefix the Account ID with b.
. For example, an Account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert an ACC or BIM 360 project ID to a Data Management project ID prefix the ACC or BIM 360 project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
publishModelJobPayload
PublishModelJobPayload
(optional)
xUserId
string
In a two-legged authentication context, an app has access to all users specified by the administrator in the SaaS integrations UI. By providing this parameter, the API call will be limited to act only on behalf of the specified user. (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
The data
object returned by the GetPublishModelJob command, if the model needs publishing. If the model is already published, the data
object will be null
.
Remarks
Executes the command that you specify in the request body. Commands enable you to perform general operations on multiple resources.
For example, you can check whether a user has permission to delete a collection of versions, items, and folders.
The command as well as the input data for the command are specified using the data
object of the request body.
For more information about commands see the Commands section in the Developer’s Guide.
Exceptions
Thrown when the SDK fails to make an API call.
ExecuteListItemsAsync(string, ListItemsPayload, string, string, bool)
Operation: Execute a Command
public Task<ListItems> ExecuteListItemsAsync(string projectId, ListItemsPayload listItemsPayload, string xUserId = null, string accessToken = null, bool throwOnError = true)
Parameters
projectId
string
The unique identifier of a project.
For BIM 360 Docs and ACC Docs, a hub ID corresponds to an Account ID. To convert a BIM 360 or ACC Account ID to a hub ID, prefix the Account ID with b.
. For example, an Account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert an ACC or BIM 360 project ID to a Data Management project ID prefix the ACC or BIM 360 project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
listItemsPayload
ListItemsPayload
(optional)
xUserId
string
In a two-legged authentication context, an app has access to all users specified by the administrator in the SaaS integrations UI. By providing this parameter, the API call will be limited to act only on behalf of the specified user. (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
The data
object returned by the ListItems command.
Remarks
Executes the command that you specify in the request body. Commands enable you to perform general operations on multiple resources.
For example, you can check whether a user has permission to delete a collection of versions, items, and folders.
The command as well as the input data for the command are specified using the data
object of the request body.
For more information about commands see the Commands section in the Developer’s Guide.
Exceptions
Thrown when the SDK fails to make an API call.
ExecuteListRefsAsync(string, ListRefsPayload, string, string, bool)
Operation: Execute a Command
public Task<ListRefs> ExecuteListRefsAsync(string projectId, ListRefsPayload listRefsPayload, string xUserId = null, string accessToken = null, bool throwOnError = true)
Parameters
projectId
string
The unique identifier of a project.
For BIM 360 Docs and ACC Docs, a hub ID corresponds to an Account ID. To convert a BIM 360 or ACC Account ID to a hub ID, prefix the Account ID with b.
. For example, an Account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert an ACC or BIM 360 project ID to a Data Management project ID prefix the ACC or BIM 360 project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
listRefsPayload
ListRefsPayload
(optional)
xUserId
string
In a two-legged authentication context, an app has access to all users specified by the administrator in the SaaS integrations UI. By providing this parameter, the API call will be limited to act only on behalf of the specified user. (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
The data
object returned by the ListRefs command.
Remarks
Executes the command that you specify in the request body. Commands enable you to perform general operations on multiple resources.
For example, you can check whether a user has permission to delete a collection of versions, items, and folders.
The command as well as the input data for the command are specified using the data
object of the request body.
For more information about commands see the Commands section in the Developer’s Guide.
Exceptions
Thrown when the SDK fails to make an API call.
ExecutePublishModelAsync(string, PublishModelPayload, string, string, bool)
Operation: Execute a Command
public Task<PublishModel> ExecutePublishModelAsync(string projectId, PublishModelPayload publishModelPayload, string xUserId = null, string accessToken = null, bool throwOnError = true)
Parameters
projectId
string
The unique identifier of a project.
For BIM 360 Docs and ACC Docs, a hub ID corresponds to an Account ID. To convert a BIM 360 or ACC Account ID to a hub ID, prefix the Account ID with b.
. For example, an Account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert an ACC or BIM 360 project ID to a Data Management project ID prefix the ACC or BIM 360 project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
publishModelPayload
PublishModelPayload
(optional)
xUserId
string
In a two-legged authentication context, an app has access to all users specified by the administrator in the SaaS integrations UI. By providing this parameter, the API call will be limited to act only on behalf of the specified user. (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
Task <PublishModel >
The data
object returned by the PublishModel command.
Remarks
Executes the command that you specify in the request body. Commands enable you to perform general operations on multiple resources.
For example, you can check whether a user has permission to delete a collection of versions, items, and folders.
The command as well as the input data for the command are specified using the data
object of the request body.
For more information about commands see the Commands section in the Developer’s Guide.
Exceptions
Thrown when the SDK fails to make an API call.
ExecutePublishWithoutLinksAsync(string, PublishWithoutLinksPayload, string, string, bool)
Operation: Execute a Command
public Task<PublishWithoutLinks> ExecutePublishWithoutLinksAsync(string projectId, PublishWithoutLinksPayload publishWithoutLinksPayload, string xUserId = null, string accessToken = null, bool throwOnError = true)
Parameters
projectId
string
The unique identifier of a project.
For BIM 360 Docs and ACC Docs, a hub ID corresponds to an Account ID. To convert a BIM 360 or ACC Account ID to a hub ID, prefix the Account ID with b.
. For example, an Account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert an ACC or BIM 360 project ID to a Data Management project ID prefix the ACC or BIM 360 project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
publishWithoutLinksPayload
PublishWithoutLinksPayload
(optional)
xUserId
string
In a two-legged authentication context, an app has access to all users specified by the administrator in the SaaS integrations UI. By providing this parameter, the API call will be limited to act only on behalf of the specified user. (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
The data
object returned by the PublishWithoutLinks command.
Remarks
Executes the command that you specify in the request body. Commands enable you to perform general operations on multiple resources.
For example, you can check whether a user has permission to delete a collection of versions, items, and folders.
The command as well as the input data for the command are specified using the data
object of the request body.
For more information about commands see the Commands section in the Developer’s Guide.
Exceptions
Thrown when the SDK fails to make an API call.
GetDownloadAsync(string, string, string, string, bool)
Operation: Get Download Details
public Task<Download> GetDownloadAsync(string projectId, string downloadId, string xUserId = null, string accessToken = null, bool throwOnError = true)
Parameters
projectId
string
The unique identifier of a project.
For BIM 360 Docs and ACC Docs, a hub ID corresponds to an Account ID. To convert a BIM 360 or ACC Account ID to a hub ID, prefix the Account ID with b.
. For example, an Account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert an ACC or BIM 360 project ID to a Data Management project ID prefix the ACC or BIM 360 project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
downloadId
string
The Job ID of the job used to generate the download.
xUserId
string
In a two-legged authentication context, an app has access to all users specified by the administrator in the SaaS integrations UI. By providing this parameter, the API call will be limited to act only on behalf of the specified user. (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
An object that represents a download.
Remarks
Returns the details of a downloadable format of a version of an item.
Exceptions
Thrown when the SDK fails to make an API call.
GetDownloadJobAsync(string, string, string, string, bool)
Operation: Check Download Creation Progress
public Task<Job> GetDownloadJobAsync(string projectId, string jobId, string xUserId = null, string accessToken = null, bool throwOnError = true)
Parameters
projectId
string
The unique identifier of a project.
For BIM 360 Docs and ACC Docs, a hub ID corresponds to an Account ID. To convert a BIM 360 or ACC Account ID to a hub ID, prefix the Account ID with b.
. For example, an Account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert an ACC or BIM 360 project ID to a Data Management project ID prefix the ACC or BIM 360 project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
jobId
string
The unique identifier of a job.
xUserId
string
In a two-legged authentication context, an app has access to all users specified by the administrator in the SaaS integrations UI. By providing this parameter, the API call will be limited to act only on behalf of the specified user. (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
An object that is returned by a successfully completed job.
Remarks
Checks the status of a job that generates a downloadable format of a version of an item.
Note: If the job has finished, this operation returns a HTTP status 303, with the location
return parameter set to the URI that returns the details of the download.
Exceptions
Thrown when the SDK fails to make an API call.
GetFolderAsync(string, string, DateTime, string, string, bool)
Operation: Get a Folder
public Task<Folder> GetFolderAsync(string projectId, string folderId, DateTime ifModifiedSince = default, string xUserId = null, string accessToken = null, bool throwOnError = true)
Parameters
projectId
string
The unique identifier of a project.
For BIM 360 Docs and ACC Docs, a hub ID corresponds to an Account ID. To convert a BIM 360 or ACC Account ID to a hub ID, prefix the Account ID with b.
. For example, an Account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert an ACC or BIM 360 project ID to a Data Management project ID prefix the ACC or BIM 360 project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
folderId
string
The unique identifier of a folder.
ifModifiedSince
DateTime
Specify a date in the YYYY-MM-DDThh:mm:ss.sz
format. If the resource has not been modified since the specified date/time, the response will return a HTTP status of 304 without any response body; the Last-Modified
response parameter will contain the date of last modification. (optional)
xUserId
string
In a two-legged authentication context, an app has access to all users specified by the administrator in the SaaS integrations UI. By providing this parameter, the API call will be limited to act only on behalf of the specified user. (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
An object that represents a folder.
Remarks
Returns the folder specified by the folder_id
parameter from within the project identified by the project_id
parameter. All folders and subfolders within a project (including the root folder) have a unique ID.
Note: This operation supports Autodesk Construction Cloud (ACC) Projects. For more information, see the ACC Platform API documentation .
Exceptions
Thrown when the SDK fails to make an API call.
GetFolderContentsAsync(string, string, string, List<FilterType>, List<string>, List<string>, List<string>, int, int, bool, string, bool)
Operation: List Folder Contents
public Task<FolderContents> GetFolderContentsAsync(string projectId, string folderId, string xUserId = null, List<FilterType> filterType = null, List<string> filterId = null, List<string> filterExtensionType = null, List<string> filterLastModifiedTimeRollup = null, int pageNumber = 0, int pageLimit = 200, bool includeHidden = false, string accessToken = null, bool throwOnError = true)
Parameters
projectId
string
The unique identifier of a project.
For BIM 360 Docs and ACC Docs, a hub ID corresponds to an Account ID. To convert a BIM 360 or ACC Account ID to a hub ID, prefix the Account ID with b.
. For example, an Account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert an ACC or BIM 360 project ID to a Data Management project ID prefix the ACC or BIM 360 project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
folderId
string
The unique identifier of a folder.
xUserId
string
In a two-legged authentication context, an app has access to all users specified by the administrator in the SaaS integrations UI. By providing this parameter, the API call will be limited to act only on behalf of the specified user. (optional)
filterType
List <FilterType >
Filter by the type of the objects in the folder. Supported values are folders
and items
. (optional)
Filter by the id
of the ref
target. (optional)
filterExtensionType
List <string >
Filter by the extension type. (optional)
filterLastModifiedTimeRollup
List <string >
Filter by the lastModifiedTimeRollup
attribute. Supported values are date-time string in the form YYYY-MM-DDTHH:MM:SS.000000Z
or YYYY-MM-DDTHH:MM:SS
based on RFC3339. (optional)
pageNumber
int
Specifies what page to return. Page numbers are 0-based (the first page is page 0). (optional)
pageLimit
int
Specifies the maximum number of elements to return in the page. The default value is 200. The min value is 1. The max value is 200. (optional)
includeHidden
bool
true
: Response will contain items and folders that were deleted from BIM 360 Docs projects.
false
: (Default): Response will not contain items and folders that were deleted from BIM 360 Docs projects.
To return only items and folders that were deleted from BIM 360 Docs projects, see the documentation on Filtering . (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
An object that represents the contents of a folder.
Remarks
Returns a list of items and folders within the specified folder. Items represent word documents, fusion design files, drawings, spreadsheets, etc.
The resources contained in the included
array of the response are their tip versions.
Note: This operation supports Autodesk Construction Cloud (ACC) Projects. For more information, see the ACC Platform API documentation .
Exceptions
Thrown when the SDK fails to make an API call.
GetFolderParentAsync(string, string, string, string, bool)
Operation: Get Parent of a Folder
public Task<Folder> GetFolderParentAsync(string projectId, string folderId, string xUserId = null, string accessToken = null, bool throwOnError = true)
Parameters
projectId
string
The unique identifier of a project.
For BIM 360 Docs and ACC Docs, a hub ID corresponds to an Account ID. To convert a BIM 360 or ACC Account ID to a hub ID, prefix the Account ID with b.
. For example, an Account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert an ACC or BIM 360 project ID to a Data Management project ID prefix the ACC or BIM 360 project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
folderId
string
The unique identifier of a folder.
xUserId
string
In a two-legged authentication context, an app has access to all users specified by the administrator in the SaaS integrations UI. By providing this parameter, the API call will be limited to act only on behalf of the specified user. (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
An object that represents a folder.
Remarks
Returns the parent folder of the specified folder. In a project, folders are organized in a hierarchy. Each folder except for the root folder has a parent folder.
Note: This operation supports Autodesk Construction Cloud (ACC) Projects. For more information, see the ACC Platform API documentation .
Exceptions
Thrown when the SDK fails to make an API call.
GetFolderRefsAsync(string, string, string, List<FilterTypeVersion>, List<string>, List<string>, string, bool)
Operation: List Related Resources for a Folder
public Task<FolderRefs> GetFolderRefsAsync(string projectId, string folderId, string xUserId = null, List<FilterTypeVersion> filterType = null, List<string> filterId = null, List<string> filterExtensionType = null, string accessToken = null, bool throwOnError = true)
Parameters
projectId
string
The unique identifier of a project.
For BIM 360 Docs and ACC Docs, a hub ID corresponds to an Account ID. To convert a BIM 360 or ACC Account ID to a hub ID, prefix the Account ID with b.
. For example, an Account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert an ACC or BIM 360 project ID to a Data Management project ID prefix the ACC or BIM 360 project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
folderId
string
The unique identifier of a folder.
xUserId
string
In a two-legged authentication context, an app has access to all users specified by the administrator in the SaaS integrations UI. By providing this parameter, the API call will be limited to act only on behalf of the specified user. (optional)
filterType
List <FilterTypeVersion >
Filter by the type
of the ref
target. Supported values include folders
, items
, and versions
. (optional)
Filter by the id
of the ref
target. (optional)
filterExtensionType
List <string >
Filter by the extension type. (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
Task <FolderRefs >
An object that represents custom relationships a folder has with other folders, items and versions.
Remarks
Returns the resources (items, folders, and versions) that have a custom relationship with the specified folder. Custom relationships can be established between a folder and other resources within the data domain service (folders, items, and versions).
Each relationship is defined by the id of the object at the other end of the relationship, together with type, attributes, and relationships links.
Callers will typically use a filter parameter to restrict the response to the custom relationship types (filter[meta.refType]
) they are interested in.
Note: This operation supports Autodesk Construction Cloud (ACC) Projects. For more information, see the ACC Platform API documentation .
Exceptions
Thrown when the SDK fails to make an API call.
GetFolderRelationshipsLinksAsync(string, string, string, string, bool)
Operation: List Relationship Links for a Folder
public Task<RelationshipLinks> GetFolderRelationshipsLinksAsync(string projectId, string folderId, string xUserId = null, string accessToken = null, bool throwOnError = true)
Parameters
projectId
string
The unique identifier of a project.
For BIM 360 Docs and ACC Docs, a hub ID corresponds to an Account ID. To convert a BIM 360 or ACC Account ID to a hub ID, prefix the Account ID with b.
. For example, an Account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert an ACC or BIM 360 project ID to a Data Management project ID prefix the ACC or BIM 360 project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
folderId
string
The unique identifier of a folder.
xUserId
string
In a two-legged authentication context, an app has access to all users specified by the administrator in the SaaS integrations UI. By providing this parameter, the API call will be limited to act only on behalf of the specified user. (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
Task of RelationshipLinks
Remarks
Returns a list of links for the specified folder.
Custom relationships can be established between a folder and other external resources residing outside the data domain service. A link’s href
attribute defines the target URI to access a resource.
Note: This operation supports Autodesk Construction Cloud (ACC) Projects. For more information, see the ACC Platform API documentation .
Exceptions
Thrown when the SDK fails to make an API call.
GetFolderRelationshipsRefsAsync(string, string, string, List<FilterTypeVersion>, List<string>, FilterRefType, FilterDirection, List<string>, string, bool)
Operation: List Custom Relationships for a Folder
public Task<RelationshipRefs> GetFolderRelationshipsRefsAsync(string folderId, string projectId, string xUserId = null, List<FilterTypeVersion> filterType = null, List<string> filterId = null, FilterRefType filterRefType = FilterRefType.Derived, FilterDirection filterDirection = FilterDirection.From, List<string> filterExtensionType = null, string accessToken = null, bool throwOnError = true)
Parameters
folderId
string
The unique identifier of a folder.
projectId
string
The unique identifier of a project.
For BIM 360 Docs and ACC Docs, a hub ID corresponds to an Account ID. To convert a BIM 360 or ACC Account ID to a hub ID, prefix the Account ID with b.
. For example, an Account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert an ACC or BIM 360 project ID to a Data Management project ID prefix the ACC or BIM 360 project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
xUserId
string
In a two-legged authentication context, an app has access to all users specified by the administrator in the SaaS integrations UI. By providing this parameter, the API call will be limited to act only on behalf of the specified user. (optional)
filterType
List <FilterTypeVersion >
Filter by the type
of the ref
target. Supported values include folders
, items
, and versions
. (optional)
Filter by the id
of the ref
target. (optional)
filterRefType
FilterRefType
Filter by refType
. Possible values: derived
, dependencies
, auxiliary
, xrefs
, and includes
. (optional)
filterDirection
FilterDirection
Filter by the direction of the reference. Possible values: from
and to
. (optional)
filterExtensionType
List <string >
Filter by the extension type. (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
An object that represents a relationship with folders, items, or resources.
Remarks
Returns the custom relationships associated with the specified folder. Custom relationships can be established between a folder and other resources within the data domain service (folders, items, and versions).
Each relationship is defined by the ID of the object at the other end of the relationship, together with type, specific reference meta including extension data.
Callers will typically use a filter parameter to restrict the response to the custom relationship types (filter[meta.refType]
) they are interested in.
The response body will have an included array that contains the resources in the relationship, which is essentially what is returned by the List Related Resources for a Folder operation.
Note: This operation supports Autodesk Construction Cloud (ACC) Projects. For more information, see the ACC Platform API documentation .
Exceptions
Thrown when the SDK fails to make an API call.
GetFolderSearchAsync(string, string, string, List<string>, int, string, bool)
Operation: List Folder and Subfolder Contents
public Task<Search> GetFolderSearchAsync(string projectId, string folderId, string filterFieldName = null, List<string> filterValue = null, int pageNumber = 0, string accessToken = null, bool throwOnError = true)
Parameters
projectId
string
The unique identifier of a project.
For BIM 360 Docs and ACC Docs, a hub ID corresponds to an Account ID. To convert a BIM 360 or ACC Account ID to a hub ID, prefix the Account ID with b.
. For example, an Account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert an ACC or BIM 360 project ID to a Data Management project ID prefix the ACC or BIM 360 project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
folderId
string
The unique identifier of a folder.
filterFieldName
string
Filter the data. See the Filtering section for details. (optional)
Value to match the filter with. See the Filtering section for details. (optional)
pageNumber
int
Specifies what page to return. Page numbers are 0-based (the first page is page 0). (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
Task of Search
Remarks
Searches the specified folder and its subfolders and returns a list of the latest versions of the items you can access.
Use the filter
query string parameter to narrow down the list as appropriate. You can filter by the following properties of the version payload:
type
property,id
property,- any of the attributes object properties.
For example, you can filter by createTime
and mimeType
. It returns tip versions (latest versions) of properties where the filter conditions are satisfied. To verify the properties of the attributes object for a specific version, use the Get a Version operation.
To list the immediate contents of the folder without parsing subfolders, use the List Folder Contents operation.
Note: This operation supports Autodesk Construction Cloud (ACC) Projects. For more information, see the ACC Platform API documentation .
Exceptions
Thrown when the SDK fails to make an API call.
GetHubAsync(string, string, string, bool)
Operation: Get a Hub
public Task<Hub> GetHubAsync(string hubId, string xUserId = null, string accessToken = null, bool throwOnError = true)
Parameters
hubId
string
The unique identifier of a hub.
xUserId
string
In a two-legged authentication context, an app has access to all users specified by the administrator in the SaaS integrations UI. By providing this parameter, the API call will be limited to act only on behalf of the specified user. (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
Task of Hub
Remarks
Returns the hub specified by the hub_id
parameter.
For BIM 360 Docs, a hub ID corresponds to a BIM 360 account ID. To convert a BIM 360 account ID to a hub ID, prefix the account ID with b.
. For example, an account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Note: This operation supports Autodesk Construction Cloud (ACC) Projects. For more information, see the ACC Platform API documentation .
Exceptions
Thrown when the SDK fails to make an API call.
GetHubProjectsAsync(string, string, List<string>, List<string>, int, int, string, bool)
Operation: Get Projects
public Task<Projects> GetHubProjectsAsync(string hubId, string xUserId = null, List<string> filterId = null, List<string> filterExtensionType = null, int pageNumber = 0, int pageLimit = 200, string accessToken = null, bool throwOnError = true)
Parameters
hubId
string
The unique identifier of a hub.
xUserId
string
In a two-legged authentication context, an app has access to all users specified by the administrator in the SaaS integrations UI. By providing this parameter, the API call will be limited to act only on behalf of the specified user. (optional)
Filter by the id
of the ref
target. (optional)
filterExtensionType
List <string >
Filter by the extension type. (optional)
pageNumber
int
Specifies what page to return. Page numbers are 0-based (the first page is page 0). (optional)
pageLimit
int
Specifies the maximum number of elements to return in the page. The default value is 200. The min value is 1. The max value is 200. (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
Task of Projects
Remarks
Returns a collection of active projects within the specified hub. The returned projects can be Autodesk Construction Cloud (ACC), BIM 360, BIM 360 Team, Fusion Team, and A360 Personal projects.
For BIM 360 and ACC projects a hub ID corresponds to an Account ID. To convert an Account ID to a hub ID, prefix the account ID with b.
. For example, a BIM 360 account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert a BIM 360 and ACC project IDs to Data Management project IDs prefix the BIM 360 or ACC Project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
Note: This operation supports Autodesk Construction Cloud (ACC) Projects. For more information, see the ACC Platform API documentation .
Exceptions
Thrown when the SDK fails to make an API call.
GetHubsAsync(string, List<string>, List<string>, List<string>, string, bool)
Operation: List Hubs
public Task<Hubs> GetHubsAsync(string xUserId = null, List<string> filterId = null, List<string> filterName = null, List<string> filterExtensionType = null, string accessToken = null, bool throwOnError = true)
Parameters
xUserId
string
In a two-legged authentication context, an app has access to all users specified by the administrator in the SaaS integrations UI. By providing this parameter, the API call will be limited to act only on behalf of the specified user. (optional)
Filter by the id
of the ref
target. (optional)
Filter by the name
of the ref
target. (optional)
filterExtensionType
List <string >
Filter by the extension type. (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
Task of Hubs
Remarks
Returns a collection of hubs that the user of your app can access.
The returned hubs can be BIM 360 Team hubs, Fusion Team hubs (formerly known as A360 Team hubs), A360 Personal hubs, ACC Docs (Autodesk Docs) accounts, or BIM 360 Docs accounts. Only active hubs are returned.
For BIM 360 Docs and ACC Docs, a hub ID corresponds to an Account ID. To convert a BIM 360 or ACC Account ID to a hub ID, prefix the Account ID with b.
. For example, an Account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Note: This operation supports Autodesk Construction Cloud (ACC) Projects. For more information, see the ACC Platform API documentation .
Exceptions
Thrown when the SDK fails to make an API call.
GetItemAsync(string, string, string, bool, string, bool)
Operation: Get an Item
public Task<Item> GetItemAsync(string projectId, string itemId, string xUserId = null, bool includePathInProject = false, string accessToken = null, bool throwOnError = true)
Parameters
projectId
string
The unique identifier of a project.
For BIM 360 Docs and ACC Docs, a hub ID corresponds to an Account ID. To convert a BIM 360 or ACC Account ID to a hub ID, prefix the Account ID with b.
. For example, an Account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert an ACC or BIM 360 project ID to a Data Management project ID prefix the ACC or BIM 360 project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
itemId
string
The unique identifier of an item.
xUserId
string
In a two-legged authentication context, an app has access to all users specified by the administrator in the SaaS integrations UI. By providing this parameter, the API call will be limited to act only on behalf of the specified user. (optional)
includePathInProject
bool
Specify whether to return pathInProject
attribute in response for BIM 360 Docs projects. pathInProject
is the relative path of the item starting from project’s root folder.
true
: Response will include thepathInProject
attribute for BIM 360 Docs projects.false
: (Default) Response will not includepathInProject
attribute for BIM 360 Docs projects. (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
Task of Item
Remarks
Retrieves an item. Items represent Word documents, Fusion 360 design files, drawings, spreadsheets, etc.
The tip version for the item is included in the included array of the payload. To retrieve multiple items, see the ListItems command.
Note: This operation supports Autodesk Construction Cloud (ACC) Projects. For more information, see the ACC Platform API documentation .
Exceptions
Thrown when the SDK fails to make an API call.
GetItemParentFolderAsync(string, string, string, string, bool)
Operation: Get Parent of an Item
public Task<Folder> GetItemParentFolderAsync(string projectId, string itemId, string xUserId = null, string accessToken = null, bool throwOnError = true)
Parameters
projectId
string
The unique identifier of a project.
For BIM 360 Docs and ACC Docs, a hub ID corresponds to an Account ID. To convert a BIM 360 or ACC Account ID to a hub ID, prefix the Account ID with b.
. For example, an Account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert an ACC or BIM 360 project ID to a Data Management project ID prefix the ACC or BIM 360 project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
itemId
string
The unique identifier of an item.
xUserId
string
In a two-legged authentication context, an app has access to all users specified by the administrator in the SaaS integrations UI. By providing this parameter, the API call will be limited to act only on behalf of the specified user. (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
An object that represents a folder.
Remarks
Returns the parent folder of the specified item.
Note: This operation supports Autodesk Construction Cloud (ACC) Projects. For more information, see the ACC Platform API documentation .
Exceptions
Thrown when the SDK fails to make an API call.
GetItemRefsAsync(string, string, string, List<FilterTypeVersion>, List<string>, List<string>, string, bool)
Operation: List Related Resources for an Item
public Task<Refs> GetItemRefsAsync(string projectId, string itemId, string xUserId = null, List<FilterTypeVersion> filterType = null, List<string> filterId = null, List<string> filterExtensionType = null, string accessToken = null, bool throwOnError = true)
Parameters
projectId
string
The unique identifier of a project.
For BIM 360 Docs and ACC Docs, a hub ID corresponds to an Account ID. To convert a BIM 360 or ACC Account ID to a hub ID, prefix the Account ID with b.
. For example, an Account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert an ACC or BIM 360 project ID to a Data Management project ID prefix the ACC or BIM 360 project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
itemId
string
The unique identifier of an item.
xUserId
string
In a two-legged authentication context, an app has access to all users specified by the administrator in the SaaS integrations UI. By providing this parameter, the API call will be limited to act only on behalf of the specified user. (optional)
filterType
List <FilterTypeVersion >
Filter by the type
of the ref
target. Supported values include folders
, items
, and versions
. (optional)
Filter by the id
of the ref
target. (optional)
filterExtensionType
List <string >
Filter by the extension type. (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
Task of Refs
Remarks
Returns the resources (items, folders, and versions) that have a custom relationship with the specified item. Custom relationships can be established between an item and other resources within the data domain service (folders, items, and versions).
Each relationship is defined by the ID of the object at the other end of the relationship, together with type, attributes, and relationships links.
Callers will typically use a filter parameter to restrict the response to the custom relationship types (filter[meta.refType]
) they are interested in.
Note: This operation supports Autodesk Construction Cloud (ACC) Projects. For more information, see the ACC Platform API documentation .
Exceptions
Thrown when the SDK fails to make an API call.
GetItemRelationshipsLinksAsync(string, string, string, string, bool)
Operation: List Relationship Links for an Item
public Task<RelationshipLinks> GetItemRelationshipsLinksAsync(string projectId, string itemId, string xUserId = null, string accessToken = null, bool throwOnError = true)
Parameters
projectId
string
The unique identifier of a project.
For BIM 360 Docs and ACC Docs, a hub ID corresponds to an Account ID. To convert a BIM 360 or ACC Account ID to a hub ID, prefix the Account ID with b.
. For example, an Account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert an ACC or BIM 360 project ID to a Data Management project ID prefix the ACC or BIM 360 project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
itemId
string
The unique identifier of an item.
xUserId
string
In a two-legged authentication context, an app has access to all users specified by the administrator in the SaaS integrations UI. By providing this parameter, the API call will be limited to act only on behalf of the specified user. (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
Task of RelationshipLinks
Remarks
Returns a list of links for the specified item.
Custom relationships can be established between an item and other external resources residing outside the data domain service. A link’s href
attribute defines the target URI to access a resource.
Note: This operation supports Autodesk Construction Cloud (ACC) Projects. For more information, see the ACC Platform API documentation .
Exceptions
Thrown when the SDK fails to make an API call.
GetItemRelationshipsRefsAsync(string, string, string, List<FilterTypeVersion>, List<string>, FilterRefType, FilterDirection, List<string>, string, bool)
Operation: List Custom Relationships for an Item
public Task<RelationshipRefs> GetItemRelationshipsRefsAsync(string projectId, string itemId, string xUserId = null, List<FilterTypeVersion> filterType = null, List<string> filterId = null, FilterRefType filterRefType = FilterRefType.Derived, FilterDirection filterDirection = FilterDirection.From, List<string> filterExtensionType = null, string accessToken = null, bool throwOnError = true)
Parameters
projectId
string
The unique identifier of a project.
For BIM 360 Docs and ACC Docs, a hub ID corresponds to an Account ID. To convert a BIM 360 or ACC Account ID to a hub ID, prefix the Account ID with b.
. For example, an Account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert an ACC or BIM 360 project ID to a Data Management project ID prefix the ACC or BIM 360 project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
itemId
string
The unique identifier of an item.
xUserId
string
In a two-legged authentication context, an app has access to all users specified by the administrator in the SaaS integrations UI. By providing this parameter, the API call will be limited to act only on behalf of the specified user. (optional)
filterType
List <FilterTypeVersion >
Filter by the type
of the ref
target. Supported values include folders
, items
, and versions
. (optional)
Filter by the id
of the ref
target. (optional)
filterRefType
FilterRefType
Filter by refType
. Possible values: derived
, dependencies
, auxiliary
, xrefs
, and includes
. (optional)
filterDirection
FilterDirection
Filter by the direction of the reference. Possible values: from
and to
. (optional)
filterExtensionType
List <string >
Filter by the extension type. (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
An object that represents a relationship with folders, items, or resources.
Remarks
Returns the custom relationships that are associated with the specified item. Custom relationships can be established between an item and other resources within the data
domain service (folders, items, and versions).
Each relationship is defined by the ID of the object at the other end of the relationship, together with type, specific reference meta including extension data.
Callers will typically use a filter parameter to restrict the response to the custom relationship types (filter[meta.refType]
) they are interested in.
The response body will have an included array that contains the resources in the relationship, which is essentially what is returned by the List Related Resources for an Item operation.
Note: This operation supports Autodesk Construction Cloud (ACC) Projects. For more information, see the ACC Platform API documentation .
Exceptions
Thrown when the SDK fails to make an API call.
GetItemTipAsync(string, string, string, string, bool)
Operation: Get Tip Version of an Item
public Task<ItemTip> GetItemTipAsync(string projectId, string itemId, string xUserId = null, string accessToken = null, bool throwOnError = true)
Parameters
projectId
string
The unique identifier of a project.
For BIM 360 Docs and ACC Docs, a hub ID corresponds to an Account ID. To convert a BIM 360 or ACC Account ID to a hub ID, prefix the Account ID with b.
. For example, an Account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert an ACC or BIM 360 project ID to a Data Management project ID prefix the ACC or BIM 360 project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
itemId
string
The unique identifier of an item.
xUserId
string
In a two-legged authentication context, an app has access to all users specified by the administrator in the SaaS integrations UI. By providing this parameter, the API call will be limited to act only on behalf of the specified user. (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
Task of ItemTip
Remarks
Returns the latest version of the specified item. A project can contain multiple versions of a resource item. The latest version is referred to as the tip version, which is returned by this operation.
Note: This operation supports Autodesk Construction Cloud (ACC) Projects. For more information, see the ACC Platform API documentation .
Exceptions
Thrown when the SDK fails to make an API call.
GetItemVersionsAsync(string, string, string, List<string>, List<string>, List<int>, int, int, string, bool)
Operation: List all Versions of an Item
public Task<Versions> GetItemVersionsAsync(string projectId, string itemId, string xUserId = null, List<string> filterId = null, List<string> filterExtensionType = null, List<int> filterVersionNumber = null, int pageNumber = 0, int pageLimit = 200, string accessToken = null, bool throwOnError = true)
Parameters
projectId
string
The unique identifier of a project.
For BIM 360 Docs and ACC Docs, a hub ID corresponds to an Account ID. To convert a BIM 360 or ACC Account ID to a hub ID, prefix the Account ID with b.
. For example, an Account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert an ACC or BIM 360 project ID to a Data Management project ID prefix the ACC or BIM 360 project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
itemId
string
The unique identifier of an item.
xUserId
string
In a two-legged authentication context, an app has access to all users specified by the administrator in the SaaS integrations UI. By providing this parameter, the API call will be limited to act only on behalf of the specified user. (optional)
Filter by the id
of the ref
target. (optional)
filterExtensionType
List <string >
Filter by the extension type. (optional)
filterVersionNumber
List <int >
Filter by versionNumber. (optional)
pageNumber
int
Specifies what page to return. Page numbers are 0-based (the first page is page 0). (optional)
pageLimit
int
Specifies the maximum number of elements to return in the page. The default value is 200. The min value is 1. The max value is 200. (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
Task of Versions
Remarks
Lists all versions of the specified item. A project can contain multiple versions of a resource item.
Note: This operation supports Autodesk Construction Cloud (ACC) Projects. For more information, see the ACC Platform API documentation .
Exceptions
Thrown when the SDK fails to make an API call.
GetProjectAsync(string, string, string, string, bool)
Operation: Get a Project
public Task<Project> GetProjectAsync(string hubId, string projectId, string xUserId = null, string accessToken = null, bool throwOnError = true)
Parameters
hubId
string
The unique identifier of a hub.
projectId
string
The unique identifier of a project.
For BIM 360 Docs and ACC Docs, a hub ID corresponds to an Account ID. To convert a BIM 360 or ACC Account ID to a hub ID, prefix the Account ID with b.
. For example, an Account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert an ACC or BIM 360 project ID to a Data Management project ID prefix the ACC or BIM 360 project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
xUserId
string
In a two-legged authentication context, an app has access to all users specified by the administrator in the SaaS integrations UI. By providing this parameter, the API call will be limited to act only on behalf of the specified user. (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
Task of Project
Remarks
Returns the specified project from within the specified hub.
For BIM 360 Docs, a hub ID corresponds to a BIM 360 account ID. To convert a BIM 360 account ID to a hub ID, prefix the account ID with b.
. For example, an account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert a BIM 360 project ID to a Data Management project ID prefix the BIM 360 Project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
Note: This operation supports Autodesk Construction Cloud (ACC) Projects. For more information, see the ACC Platform API documentation .
Exceptions
Thrown when the SDK fails to make an API call.
GetProjectHubAsync(string, string, string, string, bool)
Operation: Get Hub for Project
public Task<Hub> GetProjectHubAsync(string hubId, string projectId, string xUserId = null, string accessToken = null, bool throwOnError = true)
Parameters
hubId
string
The unique identifier of a hub.
projectId
string
The unique identifier of a project.
For BIM 360 Docs and ACC Docs, a hub ID corresponds to an Account ID. To convert a BIM 360 or ACC Account ID to a hub ID, prefix the Account ID with b.
. For example, an Account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert an ACC or BIM 360 project ID to a Data Management project ID prefix the ACC or BIM 360 project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
xUserId
string
In a two-legged authentication context, an app has access to all users specified by the administrator in the SaaS integrations UI. By providing this parameter, the API call will be limited to act only on behalf of the specified user. (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
Task of Hub
Remarks
Returns the hub that contains the project specified by the project_id
parameter.
Note: This operation supports Autodesk Construction Cloud (ACC) Projects. For more information, see the ACC Platform API documentation .
Exceptions
Thrown when the SDK fails to make an API call.
GetProjectTopFoldersAsync(string, string, string, bool, bool, string, bool)
Operation: List Top-level Project Folders
public Task<TopFolders> GetProjectTopFoldersAsync(string hubId, string projectId, string xUserId = null, bool excludeDeleted = false, bool projectFilesOnly = false, string accessToken = null, bool throwOnError = true)
Parameters
hubId
string
The unique identifier of a hub.
projectId
string
The unique identifier of a project.
For BIM 360 Docs and ACC Docs, a hub ID corresponds to an Account ID. To convert a BIM 360 or ACC Account ID to a hub ID, prefix the Account ID with b.
. For example, an Account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert an ACC or BIM 360 project ID to a Data Management project ID prefix the ACC or BIM 360 project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
xUserId
string
In a two-legged authentication context, an app has access to all users specified by the administrator in the SaaS integrations UI. By providing this parameter, the API call will be limited to act only on behalf of the specified user. (optional)
excludeDeleted
bool
Specifies whether deleted folders are excluded from the response for BIM 360 Docs projects, when user context is provided.
true
: Response excludes deleted folders for BIM 360 Docs projects.false
: (Default) Response will not exclude deleted folders for BIM 360 Docs projects. (optional)
projectFilesOnly
bool
Specifies what folders and subfolders to return for BIM 360 Docs projects, when user context is provided.
true
: Response will be restricted to folder and subfolders containing project files for BIM 360 Docs projects.false
: (Default) Response will include all available folders. (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
Task <TopFolders >
Task of TopFolders
Remarks
Returns the details of the highest level folders within a project that the user calling this operation has access to. The user must have at least read access to the folders.
If the user is a Project Admin, it returns all top-level folders in the project. Otherwise, it returns all the highest level folders in the folder hierarchy the user has access to.
Users with access permission to a folder has access permission to all its subfolders.
Note: This operation supports Autodesk Construction Cloud (ACC) Projects. For more information, see the ACC Platform API documentation .
Exceptions
Thrown when the SDK fails to make an API call.
GetVersionAsync(string, string, string, string, bool)
Operation: Get a Version
public Task<ModelVersion> GetVersionAsync(string projectId, string versionId, string xUserId = null, string accessToken = null, bool throwOnError = true)
Parameters
projectId
string
The unique identifier of a project.
For BIM 360 Docs and ACC Docs, a hub ID corresponds to an Account ID. To convert a BIM 360 or ACC Account ID to a hub ID, prefix the Account ID with b.
. For example, an Account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert an ACC or BIM 360 project ID to a Data Management project ID prefix the ACC or BIM 360 project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
versionId
string
The URL encoded unique identifier of a version.
xUserId
string
In a two-legged authentication context, an app has access to all users specified by the administrator in the SaaS integrations UI. By providing this parameter, the API call will be limited to act only on behalf of the specified user. (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
Task <ModelVersion >
Task of ModelVersion
Remarks
Returns the specified version of an item.
Note: This operation supports Autodesk Construction Cloud (ACC) Projects. For more information, see the ACC Platform API documentation .
Exceptions
Thrown when the SDK fails to make an API call.
GetVersionDownloadFormatsAsync(string, string, string, string, bool)
Operation: List Supported Download Formats
public Task<DownloadFormats> GetVersionDownloadFormatsAsync(string projectId, string versionId, string xUserId = null, string accessToken = null, bool throwOnError = true)
Parameters
projectId
string
The unique identifier of a project.
For BIM 360 Docs and ACC Docs, a hub ID corresponds to an Account ID. To convert a BIM 360 or ACC Account ID to a hub ID, prefix the Account ID with b.
. For example, an Account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert an ACC or BIM 360 project ID to a Data Management project ID prefix the ACC or BIM 360 project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
versionId
string
The URL encoded unique identifier of a version.
xUserId
string
In a two-legged authentication context, an app has access to all users specified by the administrator in the SaaS integrations UI. By providing this parameter, the API call will be limited to act only on behalf of the specified user. (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
An object that represents a download.Formats
Remarks
Returns a list of file formats the specified version of an item can be downloaded as.
Note: This operation supports Autodesk Construction Cloud (ACC) Projects. For more information, see the ACC Platform API documentation .
Exceptions
Thrown when the SDK fails to make an API call.
GetVersionDownloadsAsync(string, string, string, List<string>, string, bool)
Operation: List Available Download Formats
public Task<Downloads> GetVersionDownloadsAsync(string projectId, string versionId, string xUserId = null, List<string> filterFormatFileType = null, string accessToken = null, bool throwOnError = true)
Parameters
projectId
string
The unique identifier of a project.
For BIM 360 Docs and ACC Docs, a hub ID corresponds to an Account ID. To convert a BIM 360 or ACC Account ID to a hub ID, prefix the Account ID with b.
. For example, an Account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert an ACC or BIM 360 project ID to a Data Management project ID prefix the ACC or BIM 360 project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
versionId
string
The URL encoded unique identifier of a version.
xUserId
string
In a two-legged authentication context, an app has access to all users specified by the administrator in the SaaS integrations UI. By providing this parameter, the API call will be limited to act only on behalf of the specified user. (optional)
filterFormatFileType
List <string >
Filter by the file type of the download object. (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
An object that represents a download.s
Remarks
Returns the list of file formats of the specified version of an item currently available for download.
Note: This operation is not fully implemented as yet. It currently returns an empty data object.
Exceptions
Thrown when the SDK fails to make an API call.
GetVersionItemAsync(string, string, string, string, bool)
Operation: Get Item by Version
public Task<Item> GetVersionItemAsync(string projectId, string versionId, string xUserId = null, string accessToken = null, bool throwOnError = true)
Parameters
projectId
string
The unique identifier of a project.
For BIM 360 Docs and ACC Docs, a hub ID corresponds to an Account ID. To convert a BIM 360 or ACC Account ID to a hub ID, prefix the Account ID with b.
. For example, an Account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert an ACC or BIM 360 project ID to a Data Management project ID prefix the ACC or BIM 360 project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
versionId
string
The URL encoded unique identifier of a version.
xUserId
string
In a two-legged authentication context, an app has access to all users specified by the administrator in the SaaS integrations UI. By providing this parameter, the API call will be limited to act only on behalf of the specified user. (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
Task of Item
Remarks
Returns the item corresponding to the specified version.
Note: This operation supports Autodesk Construction Cloud (ACC) Projects. For more information, see the ACC Platform API documentation .
Exceptions
Thrown when the SDK fails to make an API call.
GetVersionRefsAsync(string, string, string, List<FilterTypeVersion>, List<string>, List<string>, string, bool)
Operation: List Related Resources for a Version
public Task<Refs> GetVersionRefsAsync(string projectId, string versionId, string xUserId = null, List<FilterTypeVersion> filterType = null, List<string> filterId = null, List<string> filterExtensionType = null, string accessToken = null, bool throwOnError = true)
Parameters
projectId
string
The unique identifier of a project.
For BIM 360 Docs and ACC Docs, a hub ID corresponds to an Account ID. To convert a BIM 360 or ACC Account ID to a hub ID, prefix the Account ID with b.
. For example, an Account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert an ACC or BIM 360 project ID to a Data Management project ID prefix the ACC or BIM 360 project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
versionId
string
The URL encoded unique identifier of a version.
xUserId
string
In a two-legged authentication context, an app has access to all users specified by the administrator in the SaaS integrations UI. By providing this parameter, the API call will be limited to act only on behalf of the specified user. (optional)
filterType
List <FilterTypeVersion >
Filter by the type
of the ref
target. Supported values include folders
, items
, and versions
. (optional)
Filter by the id
of the ref
target. (optional)
filterExtensionType
List <string >
Filter by the extension type. (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
Task of Refs
Remarks
Returns the resources (items, folders, and versions) that have a custom relationship with the specified version.
Custom relationships can be established between a version of an item and other resources within the data domain service (folders, items, and versions).
- Each relationship is defined by the id of the object at the other end of the relationship, together with type, attributes, and relationships links.
- Callers will typically use a filter parameter to restrict the response to the custom relationship types (
filter[meta.refType]
) they are interested in. - The response body will have an included array that contains the ref resources that are involved in the relationship, which is essentially the response to the List Custom Relationships for a Version operation.
Note: This operation supports Autodesk Construction Cloud (ACC) Projects. For more information, see the ACC Platform API documentation .
Exceptions
Thrown when the SDK fails to make an API call.
GetVersionRelationshipsLinksAsync(string, string, string, string, bool)
Operation: List Links for a Version
public Task<RelationshipLinks> GetVersionRelationshipsLinksAsync(string projectId, string versionId, string xUserId = null, string accessToken = null, bool throwOnError = true)
Parameters
projectId
string
The unique identifier of a project.
For BIM 360 Docs and ACC Docs, a hub ID corresponds to an Account ID. To convert a BIM 360 or ACC Account ID to a hub ID, prefix the Account ID with b.
. For example, an Account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert an ACC or BIM 360 project ID to a Data Management project ID prefix the ACC or BIM 360 project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
versionId
string
The URL encoded unique identifier of a version.
xUserId
string
In a two-legged authentication context, an app has access to all users specified by the administrator in the SaaS integrations UI. By providing this parameter, the API call will be limited to act only on behalf of the specified user. (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
Task of RelationshipLinks
Remarks
Returns a collection of links for the specified version of an item. Custom relationships can be established between a version of an item and other external resources residing outside the data domain service. A link’s href defines the target URI to access the resource.
Note: This operation supports Autodesk Construction Cloud (ACC) Projects. For more information, see the ACC Platform API documentation .
Exceptions
Thrown when the SDK fails to make an API call.
GetVersionRelationshipsRefsAsync(string, string, string, List<FilterTypeVersion>, List<string>, FilterRefType, FilterDirection, List<string>, string, bool)
Operation: List Custom Relationships for a Version
public Task<RelationshipRefs> GetVersionRelationshipsRefsAsync(string projectId, string versionId, string xUserId = null, List<FilterTypeVersion> filterType = null, List<string> filterId = null, FilterRefType filterRefType = FilterRefType.Derived, FilterDirection filterDirection = FilterDirection.From, List<string> filterExtensionType = null, string accessToken = null, bool throwOnError = true)
Parameters
projectId
string
The unique identifier of a project.
For BIM 360 Docs and ACC Docs, a hub ID corresponds to an Account ID. To convert a BIM 360 or ACC Account ID to a hub ID, prefix the Account ID with b.
. For example, an Account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert an ACC or BIM 360 project ID to a Data Management project ID prefix the ACC or BIM 360 project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
versionId
string
The URL encoded unique identifier of a version.
xUserId
string
In a two-legged authentication context, an app has access to all users specified by the administrator in the SaaS integrations UI. By providing this parameter, the API call will be limited to act only on behalf of the specified user. (optional)
filterType
List <FilterTypeVersion >
Filter by the type
of the ref
target. Supported values include folders
, items
, and versions
. (optional)
Filter by the id
of the ref
target. (optional)
filterRefType
FilterRefType
Filter by refType
. Possible values: derived
, dependencies
, auxiliary
, xrefs
, and includes
. (optional)
filterDirection
FilterDirection
Filter by the direction of the reference. Possible values: from
and to
. (optional)
filterExtensionType
List <string >
Filter by the extension type. (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
An object that represents a relationship with folders, items, or resources.
Remarks
Returns the custom relationships for the specified version.
Custom relationships can be established between a version of an item and other resources within the data domain service (folders, items, and versions).
- Each relationship is defined by the id of the object at the other end of the relationship, together with type, specific reference meta including extension data.
- Callers will typically use a filter parameter to restrict the response to the custom relationship types (
filter[meta.refType]
) they are interested in. - The response body will have an included array that contains the resources in the relationship, which is essentially the response to the List Related Resources operation .
- To get custom relationships for multiple versions, see the ListRefs command.
Note: This operation supports Autodesk Construction Cloud (ACC) Projects. For more information, see the ACC Platform API documentation .
Exceptions
Thrown when the SDK fails to make an API call.
PatchFolderAsync(string, string, ModifyFolderPayload, string, string, bool)
Operation: Modify a Folder
public Task<Folder> PatchFolderAsync(string projectId, string folderId, ModifyFolderPayload modifyFolderPayload, string xUserId = null, string accessToken = null, bool throwOnError = true)
Parameters
projectId
string
The unique identifier of a project.
For BIM 360 Docs and ACC Docs, a hub ID corresponds to an Account ID. To convert a BIM 360 or ACC Account ID to a hub ID, prefix the Account ID with b.
. For example, an Account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert an ACC or BIM 360 project ID to a Data Management project ID prefix the ACC or BIM 360 project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
folderId
string
The unique identifier of a folder.
modifyFolderPayload
ModifyFolderPayload
(optional)
xUserId
string
In a two-legged authentication context, an app has access to all users specified by the administrator in the SaaS integrations UI. By providing this parameter, the API call will be limited to act only on behalf of the specified user. (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
An object that represents a folder.
Remarks
Renames, moves, hides, or unhides a folder. Marking a BIM 360 Docs folder as hidden effectively deletes it. You can restore it by changing its hidden
attribute. You can also move BIM 360 Docs folders by changing their parent folder.
You cannot permanently delete BIM 360 Docs folders. They are tagged as hidden folders and are removed from the BIM 360 Docs UI and from regular Data Management API responses. You can use the hidden filter (filter[hidden]=true
) to get a list of deleted folders with the List Folder Contents operation.
Before you use the Data Management API to access BIM 360 Docs folders, provision your app through the BIM 360 Account Administrator portal. For details, see the Manage Access to Docs tutorial .
Note: This operation supports Autodesk Construction Cloud (ACC) Projects. For more information, see the ACC Platform API documentation .
Exceptions
Thrown when the SDK fails to make an API call.
PatchItemAsync(string, string, ModifyItemPayload, string, string, bool)
Operation: Update an Item
public Task<Item> PatchItemAsync(string projectId, string itemId, ModifyItemPayload modifyItemPayload, string xUserId = null, string accessToken = null, bool throwOnError = true)
Parameters
projectId
string
The unique identifier of a project.
For BIM 360 Docs and ACC Docs, a hub ID corresponds to an Account ID. To convert a BIM 360 or ACC Account ID to a hub ID, prefix the Account ID with b.
. For example, an Account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert an ACC or BIM 360 project ID to a Data Management project ID prefix the ACC or BIM 360 project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
itemId
string
The unique identifier of an item.
modifyItemPayload
ModifyItemPayload
(optional)
xUserId
string
In a two-legged authentication context, an app has access to all users specified by the administrator in the SaaS integrations UI. By providing this parameter, the API call will be limited to act only on behalf of the specified user. (optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
Task of Item
Remarks
Updates the displayName
of the specified item. Note that updating the displayName
of an item is not supported for BIM 360 Docs or ACC items.
Note: This operation supports Autodesk Construction Cloud (ACC) Projects. For more information, see the ACC Platform API documentation .
Exceptions
Thrown when the SDK fails to make an API call.
PatchVersionAsync(string, string, ModifyVersionPayload, string, bool)
Operation: Update a Version
public Task<ModelVersion> PatchVersionAsync(string projectId, string versionId, ModifyVersionPayload modifyVersionPayload, string accessToken = null, bool throwOnError = true)
Parameters
projectId
string
The unique identifier of a project.
For BIM 360 Docs and ACC Docs, a hub ID corresponds to an Account ID. To convert a BIM 360 or ACC Account ID to a hub ID, prefix the Account ID with b.
. For example, an Account ID of c8b0c73d-3ae9
translates to a hub ID of b.c8b0c73d-3ae9
.
Similarly, to convert an ACC or BIM 360 project ID to a Data Management project ID prefix the ACC or BIM 360 project ID with b.
. For example, a project ID of c8b0c73d-3ae9
translates to a project ID of b.c8b0c73d-3ae9
.
versionId
string
The URL encoded unique identifier of a version.
modifyVersionPayload
ModifyVersionPayload
(optional)
accessToken
string
An access token obtained by a call to GetThreeLeggedTokenAsync() or GetTwoLeggedTokenAsync(). (optional)
throwOnError
bool
Indicates whether to throw an exception on error.(optional)
Returns
Task <ModelVersion >
Task of ModelVersion
Remarks
Updates the properties of the specified version of an item. Currently, you can only change the name of the version.
Note: This operation is not supported for BIM 360 and ACC. If you want to rename a version, create a new version with a new name.
Exceptions
Thrown when the SDK fails to make an API call.