POST
/
rest
/
prompt-templates

Publish Prompt Template allows you to programmatically create a new version of a prompt template and make it available for use in the application.

Headers

X-API-KEY
string
required

Body

application/json
prompt_template
object
required
prompt_version
object
required
release_labels
string[] | null

Response

200 - application/json
id
integer
required
prompt_name
string
required
tags
string[]
required
release_labels
string[] | null
prompt_template
object
required
metadata
object | null
commit_message
string | null