Save a reusable sample for a draft proposal

Requires workflow_graph update permission on the proposal company. Stores a named user-provided sample without executing it. head_sha must exactly match the current draft under a database row lock; entrypoint_id must be an ID in that head's graph entrypoints, rather than its target node ID. Only status draft accepts new samples. History remains available after the head changes. Source, author, ID and timestamp are assigned by the server. Unknown request members are rejected. Responses use Cache-Control no-store.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
uuid
required
Body Params
string
required
^[0-9a-f]{7,64}$
string
required

Nonblank name, at most 128 UTF-8 bytes.

string
required

ID of a current draft entrypoint, at most 256 bytes.

string
required

Exact JSON text of any non-null JSON value, at most 128 KiB. String transport preserves numeric literals and formatting.

string | null

Optional human expectation, at most 4096 UTF-8 bytes; not an automated assertion.

Responses

400

Invalid request or selected entrypoint

401

Not authenticated

404

Proposal missing or inaccessible

409

Draft changed (code stale_head), status is not draft (code proposal_not_draft), or the proposal already keeps 100 scenarios (code scenario_limit; the cap is soft under a burst of concurrent writes). Scenario names are not unique: the same name can be saved twice.

413

Request body too large

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json