Autodesk BIM 360 (OAuth 2.0) Using REST API
Creating a Connection
The following GET will return a target URL. Use this URL to log in to the Dropbox for Business account to authenticate and create the connection. Make sure you connect using an Administrator account.Â
Create New AutoDesk Dta Management Connection using OAuth 2.0 |
---|
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 in order 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}"
}
} |
Â
Â