Clear this agent's system prompt (history is retained)
Return the agent to “no prompt set” without destroying its history.
The agent_prompt row and EVERY version row survive; only the pointers go
NULL. That is what gives “no prompt set” exactly ONE spelling —
latest_version_id IS NULL — whether the agent never had a prompt or the
user cleared one, which is what the null contract on the read route needs.
A later PUT continues from MAX(version_number) + 1, so history stays
contiguous. Clearing also clears the pin: there is nothing left to pin to.
Authorizations
Enter your API key (e.g. dai_sk_test_key_001)
Path Parameters
Cookies
Response
Successful Response
The response is of type Response Clear Agent Prompt Api V1 Agents Agent Name Prompt Delete · object.