Autodesk BIM 360 Using REST API
Creating a Connection
Create a basic Autodesk connection using the sample POST below. Replace the “name” and “auth” values with the values that apply to your Autodesk connector.
Â
POST {{url}}v1/connections/ |
---|
{
"name": "display name goes here",
"platform": {
"id": "autodesk-bim360"
},
"auth": {
"client_id": "client ID",
"client_secret": "client secret",
"account_id": "account ID",
"region": "region"
}
} |
Â
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": "autodesk Connection ID" },
"target": {
"path": "/project/project directory"
}
},
"simulation_mode": false
},
"schedule": {
"mode": "manual"
},
"stop_policy": {
"on_success": 5,
"on_failure": 5,
"on_execute": 25
},
"category": {
"name": "Report {Name}"
}
} |
Â