Skip to content

Latest commit

 

History

History
154 lines (90 loc) · 4.44 KB

ProjectsApi.md

File metadata and controls

154 lines (90 loc) · 4.44 KB

ForgeSdk.ProjectsApi

All URIs are relative to https://developer.api.autodesk.com/

Method HTTP request Description
getHubProjects GET /project/v1/hubs/{hub_id}/projects
getProject GET /project/v1/hubs/{hub_id}/projects/{project_id}
getProjectHub GET /project/v1/hubs/{hub_id}/projects/{project_id}/hub
getProjectTopFolders GET /project/v1/hubs/{hub_id}/projects/{project_id}/topFolders
postStorage POST /data/v1/projects/{project_id}/storage

getHubProjects

Projects getHubProjects(hubId, opts, oauth2client, credentials)

Returns a collection of projects for a given `hub_id`. A project represents an A360 project or a BIM 360 project which is set up under an A360 hub or BIM 360 account, respectively. Within a hub or an account, multiple projects can be created to be used.

Parameters

Name Type Description Notes
hubId String the `hub id` for the current operation
filterId [String] filter by the `id` of the `ref` target [optional]
filterExtensionType [String] filter by the extension type [optional]

Return type

Projects

Authorization

oauth2_access_code

HTTP request headers

  • Content-Type: application/vnd.api+json
  • Accept: application/vnd.api+json, application/json

getProject

Project getProject(hubId, projectId, oauth2client, credentials)

Returns a project for a given `project_id`.

Parameters

Name Type Description Notes
hubId String the `hub id` for the current operation
projectId String the `project id`

Return type

Project

Authorization

oauth2_access_code

HTTP request headers

  • Content-Type: application/vnd.api+json
  • Accept: application/vnd.api+json, application/json

getProjectHub

Hub getProjectHub(hubId, projectId, oauth2client, credentials)

Returns the hub for a given `project_id`.

Parameters

Name Type Description Notes
hubId String the `hub id` for the current operation
projectId String the `project id`

Return type

Hub

Authorization

oauth2_access_code

HTTP request headers

  • Content-Type: application/vnd.api+json
  • Accept: application/vnd.api+json, application/json

getProjectTopFolders

TopFolders getProjectTopFolders(hubId, projectId, oauth2client, credentials)

Returns the details of the highest level folders the user has access to for a given project

Parameters

Name Type Description Notes
hubId String the `hub id` for the current operation
projectId String the `project id`

Return type

TopFolders

Authorization

oauth2_access_code

HTTP request headers

  • Content-Type: application/vnd.api+json
  • Accept: application/vnd.api+json, application/json

postStorage

StorageCreated postStorage(projectId, body, oauth2client, credentials)

Creates a storage location in the OSS where data can be uploaded to.

Parameters

Name Type Description Notes
projectId String the `project id`
body CreateStorage describe the file the storage is created for

Return type

StorageCreated

Authorization

oauth2_access_code

HTTP request headers

  • Content-Type: application/vnd.api+json
  • Accept: application/vnd.api+json, application/json