Skip to main content
POST
Scenario from a report

Authorizations

Authorization
string
header
required

nia_sk_...

Headers

Idempotency-Key
string
required

Required. Kept 24 hours with the hash of the body: a retry with the same key returns the first answer, and the same key with a different body returns 409 conflict.

Required string length: 1 - 256

Body

application/json

A bug report becomes a scenario: its turns are kept and assertions suggested by rule, from the turns and from words of the description. The description is read, never stored.

conversation_id
string | null
Required string length: 1 - 512
description
string | null
Maximum string length: 2000
name
string | null
Required string length: 1 - 256
turn_ids
string[]
Maximum array length: 50
Pattern: ^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$

Response

The scenario, with the suggested assertions.

assertions
ReplayAssertion · object[]
required
created_at
string<date-time>
required
name
string
required
origin
enum<string>
required
Available options:
manual,
report
scenario_id
string
required
Required string length: 1 - 512
status
enum<string>
required
Available options:
active,
retired
turn_ids
string[]
required
Pattern: ^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$
updated_at
string<date-time>
required
version
integer
required

Grows with every change of the name, the assertions or the status.