---
title: "Creates and executes export task"
method: POST
path: "/v1/devices/export/tasks"
tags: ["devices"]
---

# Creates and executes export task

`POST /v1/devices/export/tasks`

## Request

- Base URL: `https://apiv1.linkmobility.eu/api`
- URL: `https://apiv1.linkmobility.eu/api/v1/devices/export/tasks`
- Auth: none declared

## Query parameters

- `deviceType` string
- `async` boolean

## Request body

- DevicesExportRequest
  - `query` string: FIQL/RSQL query string
  - `sort` string: Sorts response by given fields
  - `page` integer: Request a specific page
  - `size` integer: Sets size of a page
  - `format` string: Export format (pdf, csv, xsl)
  - `search` string: Search

## Response `200`

OK

- DevicesExportResponse
  - `query` string: FIQL/RSQL query string
  - `sort` string: Sorts response by given fields
  - `page` integer: Request a specific page
  - `size` integer: Sets size of a page
  - `format` string: Export format (pdf, csv, xsl)
  - `search` string: Search
  - `id` integer, required: id
  - `state` AsyncState
    - `done` boolean: task done?
    - `progress` integer: progress in percentage
    - `error` boolean: task error?
  - `links` Link[]: links
    - `rel` string
    - `href` string

## Other responses

- `400`: Bad request
- `500`: Internal server error

---

[API](https://skmtc.dev/linkmobility/apis/linkmobility-api.md) - [All operations](https://skmtc.dev/linkmobility/apis/linkmobility-api/llms.txt) - [OpenAPI document](https://skmtc.dev/linkmobility/apis/linkmobility-api/revisions/029548691274?raw)
