---
title: "Promote a Content Version"
method: POST
path: "/versions/{id}/promote"
tags: ["Versions"]
---

# Promote a Content Version

`POST /versions/{id}/promote`

Pass the current hash of the main version of the item (obtained from the `compare` endpoint) along with an optional array of field names of which the values are to be promoted (by default, all fields are selected).

## Path parameters

- `id` string, required

## Request body

- object
  - `mainHash` string — Hash of the main version of the item to be promoted.
  - `fields` string — Optional array of field names of which the values are to be promoted.

## Response `200`

Successful request

- object

## Other responses

- `401` — Error: Unauthorized request
- `404` — Error: Not found.

---

[API](https://skmtc.dev/utomic-media/apis/dynamic-api-specification.md) · [All operations](https://skmtc.dev/utomic-media/apis/dynamic-api-specification/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/utomic-media/dynamic-api-specification/revisions/4a0ccd34700e/schema)
