Skip to main content
PUT
Update a prompt template

Authorizations

Authorization
string
header
required

An sre_ak_* API key holding the api:admin scope (or api:config_read, which every write refuses with read_only_key).

Path Parameters

id
string
required

The resource's id.

Body

application/json
content
string

The prompt itself, 1 to 10000 characters. This is the text the model is given, so it is scanned for injection patterns on every write and answered in full by list_prompt_templates.

description
string

A line saying what this prompt is for, for whoever reads the list next. Pass null to clear it.

enabled
boolean

Whether the template may be served at all. The scanner sets it to false on a template it flags, and re-enabling one whose content still matches a pattern is refused by the scanner rather than by this argument.

is_default
boolean

Make this the default for its type, which demotes whatever held that place. Only an approved, enabled default is actually served.

name
string

What the template is called, 1 to 255 characters, unique within this organization.

Response

Updated.