---
title: "Clone Version"
method: POST
path: "/v1/projects/{project_id}/versions/{version_id}/clone"
tags: ["project-versions"]
---

# Clone Version

`POST /v1/projects/{project_id}/versions/{version_id}/clone`

## Request

- Base URL: `https://api.sonenta.dev`
- URL: `https://api.sonenta.dev/v1/projects/{project_id}/versions/{version_id}/clone`
- Auth: none declared

Convenience alias: clones THIS version into a new one. Equivalent to
`POST /versions {name, slug, parent_version_uuid: <version_id>}`.

## Path parameters

- `version_id` string, required
- `project_id` string, required

## Request body

- VersionCloneIn
  - `name` string, required
  - `slug` string, required

## Response `201`

Successful Response

- VersionOut
  - `uuid` string, required
  - `project_uuid` string, required
  - `name` string, required
  - `slug` string, required
  - `is_production` boolean, required
  - `is_dev` boolean, required
  - `realtime_channel` string, nullable, required
  - `key_style` string
  - `key_separator` string
  - `parent_version_uuid` string, nullable, required
  - `created_by_uuid` string, nullable, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/sonenta/apis/sonenta-api.md) · [All operations](https://skmtc.dev/sonenta/apis/sonenta-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sonenta/apis/sonenta-api/revisions/f853ea49fb05?raw)
