Skip to main content
POST
/
api
/
v2
/
projects
/
{project_id}
/
prompt-templates
Create prompt template
curl --request POST \
  --url https://api.example.com/api/v2/projects/{project_id}/prompt-templates \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Path Parameters

project_id
string
required

Body

application/json
name
string
required
id
string<uuid> | null

Response

201 - application/json

CreatePromptTemplateResponse(id: uuid.UUID)

id
string<uuid>
required