Skip to main content
PUT
/
prompts
Update prompt text, attributes, or active flag
curl --request PUT \
  --url https://openlens.com/api/prompts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "promptTemplate": "<string>",
  "attributes": [
    "<string>"
  ],
  "isActive": true,
  "confirmClone": true
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "topicId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "promptTemplate": "<string>",
  "isActive": true,
  "attributes": [
    "<string>"
  ],
  "topicName": "<string>",
  "intentType": "<string>",
  "language": "<string>",
  "isManual": true,
  "createdAt": "2023-11-07T05:31:56Z",
  "cloned": true,
  "originalPromptId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Documentation Index

Fetch the complete documentation index at: https://docs.openlens.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Clerk API key. Create one from your account settings under API Keys.

Query Parameters

id
string<uuid>
required

Body

application/json
promptTemplate
string
attributes
string[]
isActive
boolean
confirmClone
boolean

Response

Successful response

id
string<uuid>
required
topicId
string<uuid>
required
promptTemplate
string
required
isActive
boolean
required
attributes
string[]
required
topicName
string
intentType
string | null
language
string | null
isManual
boolean
createdAt
string<date-time>
cloned
boolean
originalPromptId
string<uuid>