---
title: "POST /api/jobs/{chain}/export"
method: POST
path: "/api/jobs/{chain}/export"
tags: ["Job Manager APIs"]
---

# POST /api/jobs/{chain}/export

`POST /api/jobs/{chain}/export`

<b>Allowed user roles:</b><br/><ul><li>sdzReadOnly</li><li>sdzUser</li></ul><br/><br/>Exports data from a single chain and produces a JSON file, caller can request skip/limit of data for pagination of results always ordered by SDO ID; can be SFTP'ed or downloaded as an async job.

## Path parameters

- `chain` string, required

## Request body

- ExportFileRequestPublic
  - `title` string
  - `description` string
  - `filePassword` string
  - `sftpUrl` string
  - `sftpUsername` string
  - `sftpPassword` string
  - `emailResultsTo` string[]
  - `limit` integer
  - `skip` integer

## Response `200`

OK

- ExportDownloadJobPublic
  - `jobId` string, uuid, required
  - `name` string, required
  - `status` 'NEW' | 'QUEUED' | 'RUNNING' | 'CANCELLED' | 'COMPLETED_ERROR' | 'COMPLETED_SUCCESS' | 'INCOMPLETE_ERROR', required
  - `jobCreated` string, date-time, required
  - `jobQueued` string, date-time
  - `jobStarted` string, date-time
  - `jobCompleted` string, date-time
  - `emailRecipients` string[]
  - `timeout` integer
  - `timeoutUnit` 'NANOSECONDS' | 'MICROSECONDS' | 'MILLISECONDS' | 'SECONDS' | 'MINUTES' | 'HOURS' | 'DAYS', required
  - `results` JobResultsPublic
    - `results` object
    - `error` unknown
    - `errorString` string
    - `errorStrings` string[]
  - `customerName` string, required
  - `sdzName` string, required
  - `effectiveId` string, uuid, required
  - `loggedInId` string, uuid, required
  - `mdc` object, required
  - `fileType` 'CSV' | 'PIPE' | 'TAB' | 'XLS' | 'XLSX' | 'XLSM' | 'EDI' | 'JSON' | 'XML' | 'PARQUET' | 'SPSS'
  - `title` string
  - `description` string
  - `password` string
  - `sftpUrl` string
  - `sftpUsername` string
  - `sftpPassword` string
  - `key` string
  - `tql` string
  - `dictName` string

---

[API](https://skmtc.net/burstiq/apis/lifegraph-apis.md) · [All operations](https://skmtc.net/burstiq/apis/lifegraph-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/burstiq/lifegraph-apis/revisions/381306ef1fcd/schema)
