Skip to Content
Docs

Delete a prompt by ID

POST
/api/delete_prompt

Delete a prompt by ID.

Personal access token scope: prompts:write.

Authorization

bearer
headerAuthorizationBearer <token>

A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).

Request Body

application/json
  1. body
id*string

Prompt ID to delete

Response Body

Success

Example Request
curl -X POST 'http://localhost:7091/api/delete_prompt' \  -H 'Content-Type: application/json' \  -d '{  "id": "string"}'
Example Response200
Empty