---
title: "Create image export"
method: POST
path: "/v1/restore/image"
tags: ["Restores (Image)"]
---

# Create image export

`POST /v1/restore/image`

## Request body

- object
  - `boot_mods` string[] — Optional boot mods to enable on the restore
  - `device_id` string, required — ID of a device
  - `image_type` 'vhdx' | 'vhdx-dynamic' | 'vhd' | 'vmdk' | 'vmdk-flat' | 'qcow2' | 'raw', required — Image type of the image export
  - `iscsi` boolean — Whether the image export should be shared over iSCSI
  - `nfs` boolean — Whether the image export should be shared over NFS
  - `nfs_clients` string[]
  - `passphrase` string — User passphrase. If the agent has a user passphrase, you must provide it here.
  - `snapshot_id` string, required — ID of a snapshot

## Response `201`

Created

- ImageExport — Image export object that represents an image export that has been created from a snapshot.
  - `agent_id` string, required — ID of an agent
  - `created_at` string, date-time, required — Creation timestamp
  - `device_id` string, required — ID of a device
  - `image_export_id` string, required — ID of an image export
  - `image_type` 'vhdx' | 'vhdx-dynamic' | 'vhd' | 'vmdk' | 'vmdk-flat' | 'qcow2' | 'raw', required — Image type of the image export
  - `iscsi` boolean — Whether the image export should be shared over iSCSI
  - `nfs` boolean — Whether the image export should be shared over NFS
  - `nfs_clients` string[]
  - `password` string, password — Samba password
  - `snapshot_id` string, required — ID of a snapshot

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `404` — Not found
- `500` — Internal server error

---

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