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
prompt_template
object
required
release_labels
string[] | null
metadata
object | null
commit_message
string | null