StatsHub Docs
APIEndpoint referenceDashboard

/dashboard/bot/prompt-templates/{id}

A blank name or content is ignored rather than written — the original guards each with a truthiness check, so a template cannot be emptied through this endpoint.

PUT
/api/dashboard/bot/prompt-templates/{id}

A blank name or content is ignored rather than written — the original guards each with a truthiness check, so a template cannot be emptied through this endpoint.

Authorization

AuthorizationBearer <token>

Supabase access token.

In: header

Path Parameters

id*string

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

application/json

curl -X PUT "https://example.com/api/dashboard/bot/prompt-templates/string" \  -H "Content-Type: application/json" \  -d '{    "content": "string",    "isActive": true,    "name": "string"  }'
{  "content": "string",  "createdAt": "string",  "id": 0,  "isActive": true,  "name": "string",  "updatedAt": "string"}