---
title: "Create Version"
method: POST
path: "/api/admin/prompts/{prompt_id}/versions"
tags: ["Prompts"]
---

# Create Version

`POST /api/admin/prompts/{prompt_id}/versions`

## Request

- Base URL: `https://data.getplace.io` (the document declares no server; this is the origin it was published from)
- URL: `https://data.getplace.io/api/admin/prompts/{prompt_id}/versions`
- Auth: OAuth 2
  - Password
  - Token URL: `/api/auth/login`

Create a new version of a prompt.

## Path parameters

- `prompt_id` integer, required

## Request body

- CreateVersionRequest
  - `system_prompt` string, nullable
  - `user_prompt` string, required
  - `model` string
  - `temperature` number
  - `notes` string, nullable
  - `set_as_current` boolean

## Response `200`

Successful Response

- PromptVersionResponse
  - `id` string, uuid, required
  - `version` integer, required
  - `system_prompt` string, nullable, required
  - `user_prompt` string, required
  - `model` string, required
  - `temperature` number, required
  - `is_current` boolean, required
  - `notes` string, nullable, required
  - `created_at` string, date-time, nullable, required
  - `updated_at` string, date-time, nullable, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/getplace/apis/getplace-insights-api.md) - [All operations](https://skmtc.dev/getplace/apis/getplace-insights-api/llms.txt) - [OpenAPI document](https://skmtc.dev/getplace/apis/getplace-insights-api/revisions/0f337387603f?raw)
