---
title: "POST /model-hub/prompt-base-templates/"
method: POST
path: "/model-hub/prompt-base-templates/"
tags: ["model-hub"]
---

# POST /model-hub/prompt-base-templates/

`POST /model-hub/prompt-base-templates/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/model-hub/prompt-base-templates/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

Create a new prompt base template

## Request body

- PromptBaseTemplate
  - `id` string, uuid
  - `name` string, required
  - `organization` string, uuid, nullable
  - `workspace` string, uuid, nullable
  - `created_at` string, date-time
  - `updated_at` string, date-time
  - `is_sample` boolean
  - `prompt_version` string, uuid, nullable
  - `category` string, nullable
  - `prompt_config_snapshot` object, nullable
  - `created_by` string

## Response `201`

Created

- PromptBaseTemplate
  - `id` string, uuid
  - `name` string, required
  - `organization` string, uuid, nullable
  - `workspace` string, uuid, nullable
  - `created_at` string, date-time
  - `updated_at` string, date-time
  - `is_sample` boolean
  - `prompt_version` string, uuid, nullable
  - `category` string, nullable
  - `prompt_config_snapshot` object, nullable
  - `created_by` string

## Other responses

- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
