Skip to main content
File attachment on an item or annotation. Files are uploaded as multipart form-data via the POST /api/file/upload endpoint and downloaded as binary streams. The DataFile shape is the metadata record returned alongside the uploaded file — the file content itself isn’t part of this JSON.

Sample JSON

Copy, edit, paste. Server-set fields (id, created, tenantId, …) are omitted from the example — they’re populated by the server on response.

What Ekso fills in

These fields are managed by the server. You don’t pass them on writes — they appear on the response.
  • sizeBytes — Captured by the upload pipeline once the byte stream finishes streaming to storage.

Fields

Used by

Response body

  • GET /api/file/{id}
  • GET /api/file/{ownerType}/{ownerId}

CLI

ekso file — see the command branches page for available verbs. Body for create / update verbs typically passed via --data @file.json matching the sample JSON above.