Procore (REST API)
Create a Procore connection using the DryvIQ REST API.
Table of Contents
Creating a Connection
The example below shows how to create a Procore connection using DryvIQ’s default application credentials. The GET message will return a login link. Use this link to complete logging into your account and grant DryvIQ access to it.
GET {{url}}v1/connections/platforms/procore/new
Creating a Job
The sample code below shows how to create a job for a Procore connection created to connect as a standard user.
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}"
}
}