Save a report of a simulated device as a scenario of a draft proposal

Requires workflow_graph update permission on the proposal company, and read permission on devices and reports there. Copies one stored report of an existing simulated device of the proposal company into a scenario with source captured_koda_report. It provisions no device, opens no stream and sends no command: it reads one stored report and writes one scenario. The scenario keeps the event the report would start (the shape of a reports_json record, built by the ingest's own shaping) in sample_data_json, so a replay never reads the report again. The entrypoint must be a kafka entrypoint of the reports_json topic whose filter and company scope let the device through. head_sha must match the current draft; only status draft accepts scenarios. A device that is not a simulated device of the company and a report the caller cannot read or that is not the device's answer 404. Reports older than 30 days are not found. 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 of the reports_json topic.

string
required

Id of the simulated device (the devices row).

uuid
required
string | null

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

Responses

400

Invalid request, or an entrypoint that is not a reports_json kafka entrypoint, or whose filter or company scope excludes the device

401

Not authenticated

404

Proposal, device or report 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).

413

Request body too large, or the report is larger than a scenario may hold (128 KiB)

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here!