---
title: "POST /GetWorkUnitResults"
method: POST
path: "/GetWorkUnitResults"
---

# POST /GetWorkUnitResults

`POST /GetWorkUnitResults`

Returns the work units resulting from the query. Work units can be executed in any order and in parallel.

## Request body

- object
  - `QueryId` string, required — The ID of the plan query operation for which to get results.
  - `WorkUnitId` integer, required — The work unit ID for which to get results. Value generated by enumerating <code>WorkUnitIdMin</code> to <code>WorkUnitIdMax</code> (inclusive) from the <code>WorkUnitRange</code> in the output of <code>GetWorkUnits</code>.
  - `WorkUnitToken` string, password, required — A work token used to query the execution service. Token output from <code>GetWorkUnits</code>.

## Response `200`

Success

- GetWorkUnitResultsResponse — A structure for the output.
  - `ResultStream` string — Rows returned from the <code>GetWorkUnitResults</code> operation as a stream of Apache Arrow v1.0 messages.

## Other responses

- `480` — InternalServiceException
- `481` — InvalidInputException
- `482` — AccessDeniedException
- `483` — ExpiredException
- `484` — ThrottledException

---

[API](https://skmtc.net/aws/apis/lakeformation.md) · [All operations](https://skmtc.net/aws/apis/lakeformation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/lakeformation/versions/a7cd69eb107d/schema)
