Skip to Content
Docs

Update an existing prompt

POST
/api/update_prompt

Update an existing prompt.

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
content*string

New content of the prompt

id*string

Prompt ID to update

name*string

New name of the prompt

Response Body

Success

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