Dropbox (REST API)
Create a Dropbox connection 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 your Dropbox account and authenticate the connection.
GET {{url}}v1/connections/platforms/dropbox/new
Creating a Job
The sample code below shows how to create a job for a Dropbox connection.
POST {{url}}v1/jobs
{
"name":"Simple Job",
"kind": "transfer",
"transfer": {
"transfer_type": "copy",
"source": {
"connection": { "id": "{{Dropbox_StandardAccount_ConnectionID}}" },
"target": {
"path": "/sourceFolder"
}
},
"destination": {
"connection": { "id": "{{OneDriveForBusiness_connection_destinationID}}" },
"target": {
"path": "/Documents/destinationFolder"
}
},
"simulation_mode": false
},
"schedule": {
"mode": "manual"
},
"stop_policy": {
"on_success": 5,
"on_failure": 5,
"on_execute": 25
},
"category": {
"name": "Report Category {Name}"
}
}