Dropbox Using REST API
This information refers to a standard Dropbox account.
Creating a Connection
The following GET will return a target URL. Use this URL to log in to the Dropbox account to authenticate and create 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.
{
"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}"
}
}
Â
Â
Â