Agent Control
Create a prompt snippet
Create a new prompt snippet within the given project.
Authorization
ApiKey read, writeAuthorization<token>
In: header
Scope: read, write
Path Parameters
projectKey*string
Request Body
application/json
Prompt snippet object to create
key*string
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 POST "https://example.com/api/v2/projects/string/ai-configs/prompt-snippets" \ -H "Content-Type: application/json" \ -d '{ "maintainerId": "507f1f77bcf86cd799439011", "name": "name", "maintainerTeamKey": "example-team-key", "description": "description", "text": "text", "key": "key", "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" ]}