---
title: "Create prompt template"
method: POST
path: "/api/v2/projects/{project_id}/prompt-templates"
tags: ["Prompt Templates"]
---

# Create prompt template

`POST /api/v2/projects/{project_id}/prompt-templates`

Create a new prompt template without any versions. Use when you need to reserve a template name before adding versions.

## Path parameters

- `project_id` string, required

## Request body

- object
  - `name` string, required
  - `id` string, uuid, nullable

## Response `201`

CreatePromptTemplateResponse(id: uuid.UUID)

- object
  - `id` string, uuid, required

---

[API](https://skmtc.net/freeplay/apis/freeplay-api.md) · [All operations](https://skmtc.net/freeplay/apis/freeplay-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/freeplay/freeplay-api/revisions/69c553220183/schema)
