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.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
400Invalid request, or an entrypoint that is not a reports_json kafka entrypoint, or whose filter or company scope excludes the device
401Not authenticated
404Proposal, device or report missing or inaccessible
409Draft changed (code stale_head), status is not draft (code proposal_not_draft), or the proposal already keeps 100 scenarios (code scenario_limit).
413Request body too large, or the report is larger than a scenario may hold (128 KiB)