Skip to main content
POST
Create Prompt Template

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required

Prompt template name.

Minimum string length: 1
version
string
required

Prompt template version.

Minimum string length: 1
content
string
required

Prompt template content.

Minimum string length: 1
is_active
boolean
default:true

Whether this prompt template version is active.

metadata
PromptTemplateMetadataRequest · object | null

Prompt template metadata. Only include tags and description.

Response

Successful Response

success
boolean
required

Whether the request was successful.

data
PromptTemplateMutationData · object
required

Prompt template mutation results.

error_type
string | null

Type of error if the request failed.

error_message
string | null

Error message or informational message.