Revert Version
Stage an earlier version, and with publish=true publish it.
A publishing revert passes the same simulation publish gate as a publish, evaluated against the reverted staged state. The gate is checked before anything is committed, so a refused revert leaves staging as it was.
Authorization
OAuth2AuthorizationCodeBearer In: header
Path Parameters
uuidQuery Parameters
falsetrueRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Publish-gate evidence for a revert with publish=true; ignored otherwise.
{}Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/v1/agents/497f6eca-6276-4993-bfeb-53cbbbba6f08/versions/0/revert" \ -H "Content-Type: application/json" \ -d '{}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978", "version": 0, "schema_version": 0, "snapshot": {}, "source": "string", "label": "string", "published_by": "9ac9eee7-2153-423d-b22d-04e12679154a", "published_at": "2019-08-24T14:15:22Z", "simulation_gate_id": "762f52de-b2a5-4954-91ff-affefb839398", "simulation_override_reason": "string", "simulation_overridden_by": "4a2a1cc8-8c97-4e4b-ab29-8f5ffd93b9b5", "warnings": [ "string" ]}{ "detail": "string", "code": "string"}{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string" } ]}