Export Bag Files
POST/api/v1/bags/export
Download one or more .bag files. A single file is returned as-is (application/octet-stream). Multiple files are packaged into a ZIP archive (application/zip). Paths must be relative to BAGS_FS root (e.g. critical_bags/scan_001.bag). Files under trash/ are developer-only.
Request
- application/json
Body
required
files string[]required
Possible values: >= 1, <= 50
Relative paths of .bag files to export. Single file returns the raw file; multiple files return a ZIP.
Responses
- 200
- 400
- 403
- 404
- 500
File download — .bag for single, .zip for multiple
- application/octet-stream
- application/zip
- Schema
Schema
string
- Schema
Schema
string
Bad request — invalid body, extension, path, or duplicates
- application/json
- Schema
- Example (from schema)
Schema
success booleanrequired
message stringrequired
{
"success": true,
"message": "string"
}
Forbidden — files under trash/ require the developer role
- application/json
- Schema
- Example (from schema)
Schema
success booleanrequired
message stringrequired
{
"success": true,
"message": "string"
}
One or more requested files not found
- application/json
- Schema
- Example (from schema)
Schema
success booleanrequired
message stringrequired
{
"success": true,
"message": "string"
}
Internal server error
- application/json
- Schema
- Example (from schema)
Schema
success booleanrequired
message stringrequired
{
"success": true,
"message": "string"
}
Loading...