---
title: "Create a dimension"
method: POST
path: "/instances/{instance_id}/dimensions"
tags: ["Private"]
deprecated: true
---

# Create a dimension

`POST /instances/{instance_id}/dimensions`

> **Deprecated.**

Create a new dimension which is related to an instance

## Path parameters

- `instance_id` string, required

## Headers

- `If-Match` string

## Request body

- UpdateDimensionOptionRequest — A cached dimension. (Only used by the Private API)
  - `code` string
  - `codelist` string
  - `dimension` string — The name of the dimension
  - `instance_id` string — The unique identifier for the instance in which this dimension option is associated to
  - `label` string — The label for a option
  - `option` string — The option of the dimension
  - `order` integer — The numerical order for the dimension option

## Response `201`

Dimension was created

## Other responses

- `400` — Failed to process the request due to invalid request
- `404` — The instance was not found
- `409` — Failed to process the request due to a conflict
- `500` — Failed to process the request due to an internal error

---

[API](https://skmtc.net/office-of-national-statistics/apis/explore-our-data.md) · [All operations](https://skmtc.net/office-of-national-statistics/apis/explore-our-data/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/office-of-national-statistics/explore-our-data/revisions/269ed359fb27/schema)
