Export a board to Optiwork Drive
POST
/boards/{board}/export/drive
const url = 'https://projects.work.optidata.cloud/api/boards/1/export/drive';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"format":"csv","fields":["task_title","list_name","due_date","assignees"],"node":{"id":12345,"drive_id":1}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://projects.work.optidata.cloud/api/boards/1/export/drive \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "format": "csv", "fields": [ "task_title", "list_name", "due_date", "assignees" ], "node": { "id": 12345, "drive_id": 1 } }'Exports the board (same formats and fields as Export a board) and uploads the resulting file to a folder (node) in Optiwork Drive instead of streaming it back. Requires export permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”board
required
integer
Board id.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
format
required
string
fields
required
Array<string>
node
required
Target Optiwork Drive node (folder) descriptor where the file is uploaded.
object
Example
{ "format": "csv", "fields": [ "task_title", "list_name", "due_date", "assignees" ], "node": { "id": 12345, "drive_id": 1 }}Responses
Section titled “Responses”Upload result with the created Drive file metadata.
Media typeapplication/json
Drive upload result (file metadata as returned by Optiwork Drive).
object
key
additional properties
any
Examplegenerated
{}Missing, invalid or expired bearer passport.
Media typeapplication/json
object
error
string
Example
{ "error": "JWT passport exception: Missing bearer token in request"}The authenticated user lacks the required board permission.
Media typeapplication/json
object
message
string
Example
{ "message": "This action is unauthorized."}Resource not found, or a nested resource does not belong to its parent in the path.
Media typeapplication/json
object
message
string
Example
{ "message": "Not found."}Validation failed.
Media typeapplication/json
object
message
First validation error message.
string
errors
Map of field name → list of error messages.
object
key
additional properties
Array<string>
Example
{ "message": "The name field is required.", "errors": { "name": [ "The name field is required." ] }}