---
title: "Create document new version"
method: POST
path: "/v2/documents"
tags: ["documents"]
---

# Create document new version

`POST /v2/documents`

## Request body

- CreateDocumentRequest
  - `type` string, required — Document type
  - `contentUrl` string, required — Content utl to the document

## Response `201`

Created

- Document
  - `id` integer — Document id
  - `type` string — Document type
  - `version` integer — Version of the document
  - `contentUrl` string — Content utl to the document
  - `created` string, date-time — The date that the resource has been created

## Other responses

- `422` — Unprocessable Entity
- `default` — Default error response

---

[API](https://skmtc.dev/twinkly/apis/core-api.md) · [All operations](https://skmtc.dev/twinkly/apis/core-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/twinkly/core-api/revisions/32270c1fd3be/schema)
