Endpoint referenceDashboard
/dashboard/bot/prompt-templates
SECURITY: unauthenticated, and it writes.
SECURITY: unauthenticated, and it writes. See DashboardBotToggle.
Activating a new template deactivates every other one first. A database trigger enforces the same invariant, so the update here is belt and braces — but it also means the two could disagree if the trigger were ever dropped.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/api/v2/dashboard/bot/prompt-templates" \ -H "Content-Type: application/json" \ -d '{ "content": "string", "isActive": true, "name": "string" }'{ "$schema": "https://example.com/schemas/BotPromptTemplates.json", "content": "string", "createdAt": "string", "id": 0, "isActive": true, "name": "string", "updatedAt": "string"}