v3

OpenAPI 3.1.02026-07-31350397683.8 KB
Prompts

Delete Prompt Version Agent Scoped

delete a specific prompt version; cannot delete production; cannot delete only version.

if deleting latest, reassign latest to highest remaining version. returns metadata about the deletion.

delete/v1/agents/{agent_id}/prompts/versions/{version}

Path parameters

agent_idinteger required
versioninteger required

Headers

X-API-Keystring required

API key required to authenticate requests.

Response

Successful Response

{"stackTrail":"paths:/v1/agents/{agent_id}/prompts/versions/{version}:delete:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}