Agent Versions
Delete Agent Version By Label
delete a prompt version by label.
- if label is production -> 400 (must move production first)
- if label resolves to 0 -> 404; >1 -> 400 ambiguous (except latest which should be unique)
- if deleting latest, reassign latest to highest remaining version
- cannot delete if it is the only version
delete/v1/agents/{agent_id}/versions
Path parameters
agent_idinteger required
Query parameters
labelstring nullable
Headers
X-Organization-Idstring
X-API-Keystring required
API key required to authenticate requests.
Response
Successful Response
{"stackTrail":"paths:/v1/agents/{agent_id}/versions:delete:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}
Changes
Changed in 1 of the 38 revisions of this API.1
- ○
endpoint added
endpoint-added
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○