v1
latestOpenAPI 3.1.02026-07-2295105298.6 KBBasics
Update Prompt
Updates a prompt's metadata (text, type, volume, topic, geography, locations). Only the supplied fields change. Returns a before/after snapshot.
A prompt's text (prompt) can only be changed while the prompt has not streamed any responses yet. Once it has responses, sending a changed prompt returns 400 — delete the prompt and create a new one instead. All other fields (type, volume, topic, geography, locations) remain editable at any time, and re-sending the existing text unchanged is always allowed.
patch/api/v1/prompts/{prompt_id}
Path parameters
prompt_idstring uuid required
The prompt to update.
Request body
Response
Prompt updated