---
title: "Create data subsets"
method: POST
path: "/catalogs/{catalogHrn}/dataSubsets"
tags: ["config"]
---

# Create data subsets

`POST /catalogs/{catalogHrn}/dataSubsets`

Creates one or more data subsets for the given catalog.  
- Maximum **1000** data subsets can be created in a single request.  
- This is an **asynchronous** operation: the request returns a status link which can be used to check the operation result.

## Path parameters

- `catalogHrn` string, required

## Request body

- DataSubsetCreate[]
  - union
    - DataSubsetAreasCreate
      - `id` string, required
      - `name` string, required
      - `dataSubsetType` 'areas', required — Type of the data subset
      - `areaScheme` string, required — HRN of the Area Scheme
      - `areas` string[], required
    - DataSubsetLayersCreate
      - `id` string, required
      - `name` string, required
      - `dataSubsetType` 'layers' | 'ocm-layers' | 'nds-layers', required — Type of the data subset
      - `layers` string[], required

## Response `202`

Accepted - your request was received and is being processed.

- StatusLink — Describes the status and href of the create/update/delete resource such as a catalog.
  - `href` string — href of the created/update/delete catalog action
  - `configToken` string — token for getting the status of created/update/delete catalog action
  - `title` string — Title of the action
  - `type` string — Type of the href

## Other responses

- `400` — Bad Request - indicates that your request failed fast validation, such as syntax or some logical errors.
- `401` — Unauthorized
- `402` — Payment required - indicates that your request failed because performing the catalog operation would exceed the resource limit.
- `403` — Forbidden
- `409` — Conflict - indicates that a data subset with the same ID already exists or is in the process of being created.

---

[API](https://skmtc.dev/here/apis/query-api-v1.md) · [All operations](https://skmtc.dev/here/apis/query-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/here/query-api-v1/revisions/30e5d2645407/schema)
