Autodesk BIM 360 (OAuth 2.0) (REST API)
Create an Autodesk BIM 360 connection with Oauth 2.0 authentication using the DryvIQ REST API.
Table of Contents
Creating a Connection
The following GET will return a target URL. Use this URL to log in to the Autodesk BIM 360 account to authenticate and create the connection. Make sure you connect using an Administrator account.
GET {{url}}v1/connections/platforms/autodesk-bim360-oauth2/new
Creating a Job
The sample code below shows how to create a job for an Autodesk connection created to connect as a standard user.
When creating a job with Autodesk, you must select the project and then the project directory when configuring the job location paths to transfer content. Otherwise the job will fail with an "Unknown failure" error.
POST {{url}}v1/jobs
{
"name":"Simple Job",
"kind": "transfer",
"transfer": {
"transfer_type": "copy",
"source": {
"connection": { "id": "Source connection ID" },
"target": {
"path": "/sourceDocumentLibrary"
}
},
"destination": {
"connection": { "id": "Destination Connection ID" },
"target": {
"path": "/destinationFolder"
}
},
"simulation_mode": false
},
"schedule": {
"mode": "manual"
},
"stop_policy": {
"on_success": 5,
"on_failure": 5,
"on_execute": 25
},
"category": {
"name": "Report {Name}"
}
}