APIEndpoint referenceDashboard
/dashboard/bot/prompt-templates
Activating a new template deactivates every other one first.
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.
AuthorizationBearer <token>
Supabase access token.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/dashboard/bot/prompt-templates" \ -H "Content-Type: application/json" \ -d '{ "content": "string", "isActive": true, "name": "string" }'{ "content": "string", "createdAt": "string", "id": 0, "isActive": true, "name": "string", "updatedAt": "string"}