All URIs are relative to https://developer.api.autodesk.com/
| Method | HTTP request | Description |
|---|---|---|
| getVersion | GET /data/v1/projects/{project_id}/versions/{version_id} | |
| getVersionItem | GET /data/v1/projects/{project_id}/versions/{version_id}/item | |
| getVersionRefs | GET /data/v1/projects/{project_id}/versions/{version_id}/refs | |
| getVersionRelationshipsRefs | GET /data/v1/projects/{project_id}/versions/{version_id}/relationships/refs | |
| postVersion | POST /data/v1/projects/{project_id}/versions | |
| postVersionRelationshipsRef | POST /data/v1/projects/{project_id}/versions/{version_id}/relationships/refs |
Version getVersion(projectId, versionId, oauth2client, credentials)
Returns the version with the given `version_id`.
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | String | the `project id` | |
| versionId | String | the `version id` |
- Content-Type: application/vnd.api+json
- Accept: application/vnd.api+json, application/json
Item getVersionItem(projectId, versionId, oauth2client, credentials)
Returns the item the given version is associated with.
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | String | the `project id` | |
| versionId | String | the `version id` |
- Content-Type: application/vnd.api+json
- Accept: application/vnd.api+json, application/json
JsonApiCollection getVersionRefs(projectId, versionId, opts, oauth2client, credentials)
Returns the resources (`items`, `folders`, and `versions`) which have a custom relationship with the given `version_id`. Custom relationships can be established between a version of an item and other resources within the 'data' domain service (folders, items, and versions).
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | String | the `project id` | |
| versionId | String | the `version id` | |
| filterType | [String] | filter by the `type` of the `ref` target | [optional] |
| filterId | [String] | filter by the `id` of the `ref` target | [optional] |
| filterExtensionType | [String] | filter by the extension type | [optional] |
- Content-Type: application/vnd.api+json
- Accept: application/vnd.api+json, application/json
Refs getVersionRelationshipsRefs(projectId, versionId, opts, oauth2client, credentials)
Returns the custom relationships that are associated to the given `version_id`. Custom relationships can be established between a version of an item and other resources within the 'data' domain service (folders, items, and versions).
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | String | the `project id` | |
| versionId | String | the `version id` | |
| filterType | [String] | filter by the `type` of the `ref` target | [optional] |
| filterId | [String] | filter by the `id` of the `ref` target | [optional] |
| filterRefType | [String] | filter by `refType` | [optional] |
| filterDirection | String | filter by the direction of the reference | [optional] |
| filterExtensionType | [String] | filter by the extension type | [optional] |
- Content-Type: application/vnd.api+json
- Accept: application/vnd.api+json, application/json
VersionCreated postVersion(projectId, body, oauth2client, credentials)
Creates a new version of an item in the 'data' domain service.
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | String | the `project id` | |
| body | CreateVersion | describe the version to be created |
- Content-Type: application/vnd.api+json
- Accept: application/vnd.api+json, application/json
postVersionRelationshipsRef(projectId, versionId, body, oauth2client, credentials)
Creates a custom relationship between a version and another resource within the 'data' domain service (folder, item, or version).
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | String | the `project id` | |
| versionId | String | the `version id` | |
| body | CreateRef | describe the ref to be created |
null (empty response body)
- Content-Type: application/vnd.api+json
- Accept: application/vnd.api+json, application/json