AiPromptDecoratorPresetProject
AiTopicCategoryPresetProject
AiPromptGuardPresetProject
AiPrivacyPresetProject
AiPromptTemplateProject
AiDlpPresetProject

Adds an AI prompt-guard preset to specified project (upsert by name)

Changed on

Adds a custom AI prompt-guard preset owned by this project. If this project already owns a preset with the same name it is updated. A name that only resolves to a built-in/admin-shared preset is NOT treated as existing here — create() is attempted and rejects the collision. Built-in presets are read-only.

post/apiops/projects/{projectName}/ai-prompt-guard-presets/{presetName}/

Request

Path parameters

projectNamestring required
presetNamestring required

Request body

idstring
projectIdstring
namestring
ruleValuestring
action'BLOCK' | 'FLAG' | 'MASK'
categorystring
descriptionstring
enabledboolean
builtInboolean
owaspLlmIdstring
mitreAtlasTechniquestring
packageVersionstring

Response

successful operation!

status'SUCCESS' | 'FAILURE'
resultMessagestring
resultListstring[]
resultCountinteger
unresolvedReferencesstring[]

Changes

    • breaking

      request property was restricted to a list of enum values

    • breaking

      the request property type changed from object to string

    • warning

      removed the request property /

    This list may be incomplete.

    • info

      endpoint added