Agent Control
Update a prompt snippet
Update an existing prompt snippet. Creates a new version of the snippet.
Authorization
ApiKey read, writeAuthorization<token>
In: header
Scope: read, write
Path Parameters
projectKey*string
snippetKey*string
Request Body
application/json
Prompt snippet fields to update
name?string
description?string
text?string
The text content of the prompt snippet
maintainerId?string
maintainerTeamKey?string
tags?array<string>
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/api/v2/projects/string/ai-configs/prompt-snippets/string" \ -H "Content-Type: application/json" \ -d '{ "maintainerId": "507f1f77bcf86cd799439011", "name": "name", "maintainerTeamKey": "example-team-key", "description": "description", "text": "text", "tags": [ "tags", "tags" ] }'{ "createdAt": 6, "_maintainer": { "kind": "kind" }, "_access": { "allowed": [ { "reason": { "role_name": "role_name", "notActions": [ null, null ], "notResources": [ "notResources", "notResources" ], "effect": "allow", "resources": [ "proj/*:env/*;qa_*:/flag/*" ], "actions": [ "*" ] }, "action": "action" }, { "reason": { "role_name": "role_name", "notActions": [ null, null ], "notResources": [ "notResources", "notResources" ], "effect": "allow", "resources": [ "proj/*:env/*;qa_*:/flag/*" ], "actions": [ "*" ] }, "action": "action" } ], "denied": [ { "reason": { "role_name": "role_name", "notActions": [ null, null ], "notResources": [ "notResources", "notResources" ], "effect": "allow", "resources": [ "proj/*:env/*;qa_*:/flag/*" ], "actions": [ "*" ] }, "action": "action" }, { "reason": { "role_name": "role_name", "notActions": [ null, null ], "notResources": [ "notResources", "notResources" ], "effect": "allow", "resources": [ "proj/*:env/*;qa_*:/flag/*" ], "actions": [ "*" ] }, "action": "action" } ] }, "_links": { "parent": { "href": "href", "type": "type" }, "self": { "href": "href", "type": "type" } }, "_site": { "href": "href", "type": "type" }, "name": "name", "description": "description", "text": "text", "version": 0, "key": "key", "tags": [ "tags", "tags" ]}