Discard Control Build
discard_control_buildDiscard a held control build to release its threat model, drop staged changes, keep published controls, and repropose the build for later. Running builds must be paused first.
Instructions
Discard a model's held control build. Mutating.
A build that is queued, deferred, paused or blocked holds
the model without running. Discarding it drops everything it staged — the
model keeps its published controls exactly as they were — releases the
model, and proposes the build again so it can be started later. The
credits it already consumed are not returned. A running build must be
paused first (pause_control_generation, then wait for paused).
Returns one of:
{discarded: true, model_id, status: "discarded", proposal, status_detail}.{discarded: false, http_status: 409, code: "pause_first", status}— the build is running; pause it first.{discarded: false, http_status: 409, code: "not_held", status}— no build holds the model.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model_id | Yes | ID of the threat model whose held build to discard. | |
| server_version | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||