Skip to main content
POST
Create 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).

Body

application/json
content
string
required

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.

name
string
required

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

prompt_type
enum<string>
required

What the prompt is for: investigation_system, investigation_user, slack_assistant, root_cause, custom. It decides which lookup serves the template, and it cannot be changed afterwards.

Available options:
investigation_system,
investigation_user,
slack_assistant,
root_cause,
custom
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.

Response

Created.