---
title: "POST /datasets/{datasetId}/dataviewsv2"
method: POST
path: "/datasets/{datasetId}/dataviewsv2"
---

# POST /datasets/{datasetId}/dataviewsv2

`POST /datasets/{datasetId}/dataviewsv2`

Creates a Dataview for a Dataset.

## Path parameters

- `datasetId` string, required — ID for a given Dataset

## Request body

- object
  - `clientToken` string — Idempotence Token for API operations
  - `autoUpdate` boolean — Common Boolean data type
  - `sortColumns` StringValueLength1to255[] — DataView Sort Column List
  - `partitionColumns` StringValueLength1to255[] — DataView Partition Column List
  - `asOfTimestamp` integer — Milliseconds since UTC epoch
  - `destinationTypeParams` object, required — Structure for the Dataview destination type parameters.
    - `destinationType` string — <p>Destination type for a Dataview.</p> <ul> <li> <p> <code>GLUE_TABLE</code> – Glue table destination type.</p> </li> <li> <p> <code>S3</code> – S3 destination type.</p> </li> </ul>
    - `s3DestinationExportFileFormat` 'PARQUET' | 'DELIMITED_TEXT' — <p>Dataview export file format.</p> <ul> <li> <p> <code>PARQUET</code> – Parquet export file format.</p> </li> <li> <p> <code>DELIMITED_TEXT</code> – Delimited text export file format.</p> </li> </ul>
    - `s3DestinationExportFileFormatOptions` object — <p>Format Options for S3 Destination type.</p> <p>Here is an example of how you could specify the <code>s3DestinationExportFileFormatOptions</code> </p> <p> <code> { "header": "true", "delimiter": ",", "compression": "gzip" }</code> </p>

## Response `200`

Success

- CreateDataViewResponse — Response for creating a data view.
  - `datasetId` string — The unique identifier of the Dataset used for the Dataview.
  - `dataViewId` string — The unique identifier for the created Dataview.

## Other responses

- `480` — InternalServerException
- `481` — ThrottlingException
- `482` — ValidationException
- `483` — LimitExceededException
- `484` — ConflictException
- `485` — ResourceNotFoundException

---

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