Basics
Update Prompt
Changed onUpdates 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}
Request
- Base URLhttps://api.athenahq.ai
- AuthAPI key in header x-api-key
Path parameters
prompt_idstring uuid required
The prompt to update.
Request body
Response
Prompt updated
Changes
- warning
the
request property's maxLength was set to2000
- warning