---
title: "Export some assignments"
method: POST
path: "/v3/exports/assignments/exportSome"
tags: ["Assignments"]
---

# Export some assignments

`POST /v3/exports/assignments/exportSome`

## Request

- Base URL: `https://dev-fw-api.globalforestwatch.org`
- URL: `https://dev-fw-api.globalforestwatch.org/v3/exports/assignments/exportSome`
- Auth: HTTP bearer

Exports a selection of assignements and associated images given its id as either fwbundle or zipped csv or geojson or shp. The "fields" array in the body determines the columns in any csv export. The response is an id to poll the GET /v3/exports/assignments/{id} endpoint is for the URL once the export has completed

## Request body

- object
  - `fileType` 'csv' | 'fwbundle' | 'shp' | 'geojson' | 'pdf'
  - `fields` string[]
  - `ids` string[]

## Response `200`

Id to poll endpoint

- object
  - `data` string

## Other responses

- `401`: Error Response

## Changes

- **2022-12-01** `ccfc66512822`: 2 breaking, 5 info
  - request property `fileType` was restricted to a list of enum values
  - the `ids` request property type changed from `string` to `array`
  - added the new `csv` enum value to the request property `fileType`
  - added the new `fwbundle` enum value to the request property `fileType`
  - …3 more
- **2022-11-21** `65a57c1c7f06`: 1 warning, 1 info
  - removed the request property `fileTyoe`
  - added the new optional request property `fileType`
- **2022-11-18** `46f06edff924`: 1 info
  - added optional request body
- **2022-11-08** `9905998b00d4`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/wri/apis/fw-exports/changes/v3/exports/assignments/exportSome/post.md)

---

[API](https://skmtc.dev/wri/apis/fw-exports.md) - [All operations](https://skmtc.dev/wri/apis/fw-exports/llms.txt) - [OpenAPI document](https://skmtc.dev/wri/apis/fw-exports/revisions/ccfc66512822?raw)
