Skip to main content
PATCH
Update a tracked prompt

Authorizations

Authorization
string
header
required

API key with dtk_live_ prefix. Obtain it from API Keys in the account sidebar. New keys start with all supported scopes selected for the chosen project, and you can narrow them to specific read/write scopes as needed.

Path Parameters

projectId
string<uuid>
required
promptId
string<uuid>
required

A prompt id from listPrompts.

Body

application/json
promptText
string

The exact question to track.

Required string length: 10 - 1000
topicId
string<uuid>

Move the prompt to this topic.

isActive
boolean

Switch the prompt on or off.

expectedActive
boolean

Refuse the change unless the prompt is still in this on/off state.

force
boolean
default:false

Track the prompt even though a highly similar one is already tracked.

Response

The updated prompt

data
object
required
meta
object
required