/products/{productId}/test-cases

Create a new test case for a product. The draftSnapshot is stored verbatim so the placeholder-then-fill pattern keeps working. The 200 response includes a non-blocking validationWarnings: DraftSnapshotValidationWarning[] array — per-field validation issues against the TransportForProducts shape. An empty array means the snapshot would validate cleanly at POST /test-cases/run time. A wrapped envelope with transport: null or a bare TransportForProducts (no { transport, shapeId } wrapper) still 400s — validationWarnings[] is only populated for an otherwise-acceptable but underspecified transport.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The unique identifier of the product

Body Params

Request to create a product test case

string
required
number
required
draftSnapshot
object
required
expectedOutput
object
Responses

400

bad request

401

unauthorized

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