---
title: "Export"
method: POST
path: "/landscapes/{landscapeId}/versions/{versionId}/export"
tags: ["Landscape"]
---

# Export

`POST /landscapes/{landscapeId}/versions/{versionId}/export`

Create a background job that exports a landscape in the specified format.

## Path parameters

- `landscapeId` string, required
- `versionId` string, required

## Query parameters

- `type` 'pdf' | 'markdown' | 'html' | 'llms' | 'json' | 'object-csv' | 'connection-csv', required
- `filter` LandscapeExportFilter
  - `diagramId` string
  - `flowId` string
  - `includeDiagrams` boolean — Whether or not to include diagrams in PDF exports, defaults to true
  - `includeFlows` boolean — Whether or not to include flows in PDF exports, defaults to true
  - `modelObjectId` string

## Request body

- LandscapeExportOptions
  - `draftId` string — Fetch and apply draft tasks before producing the export
  - `orientation` 'portrait' | 'landscape'
  - `schema` 'v1' | 'v2' — Schema version to use for JSON exports. `v1` (default) produces the legacy format where entities are keyed objects. `v2` produces the same structure as the `LandscapeImportData` used by the import endpoint, so an export can be imported directly.

## Response `200`

OK

- object
  - `landscapeExport` LandscapeExport, required
    - `completedAt` string, date-time
    - `createdAt` string, date-time, required
    - `deleteAt` string, date-time, required
    - `error` string, nullable, required
    - `fileUrl` string, uri, nullable, required
    - `filter` LandscapeExportFilter
      - `diagramId` string
      - `flowId` string
      - `includeDiagrams` boolean — Whether or not to include diagrams in PDF exports, defaults to true
      - `includeFlows` boolean — Whether or not to include flows in PDF exports, defaults to true
      - `modelObjectId` string
    - `id` string, required
    - `landscapeId` string, required
    - `options` LandscapeExportOptions
      - `draftId` string — Fetch and apply draft tasks before producing the export
      - `orientation` 'portrait' | 'landscape'
      - `schema` 'v1' | 'v2' — Schema version to use for JSON exports. `v1` (default) produces the legacy format where entities are keyed objects. `v2` produces the same structure as the `LandscapeImportData` used by the import endpoint, so an export can be imported directly.
    - `type` 'pdf' | 'markdown' | 'html' | 'llms' | 'json' | 'object-csv' | 'connection-csv', required
    - `versionId` string, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `422` — Unprocessable Entity
- `429` — Resource Exhausted
- `500` — Internal Server

---

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