Create Test
Create a new test case in the authenticated project.
project:edit-teststest depends on
test_type; this endpoint accepts the same verification / discovery /
task variants returned by Get Test.
400. Pass shared_collection_steps_mode=drop to silently
drop the inline steps (they will be resolved from the shared step
collection at run time).Query Parameters
error (reject) or drop (silently strip the inline steps).Request Body
id may be omitted to have one generated. version is
ignored on create. See Get Test for the
detailed shape.expected_results to give a
step one or more independent checks. It accepts:- a single string — one result,
- a list of strings — one result per element,
- a list of
{ "expected": "..." }objects (forward-compatible form).
finish_condition (single string) is still accepted as an
alias for a single result and is ignored when expected_results is present."regression/smoke"). null or
"/" places it at the project root. Mutually exclusive with folder_id.folder_path.Test-level time budget
The runtime budget is configured on the test itself, not on individual steps or players. There is no per-run override surface — to change the budget, edit the test (or create a new version).| Test type | Allowed fields | Default | Notes |
|---|---|---|---|
verification | max_seconds | 19800 (5.5h) | min_seconds is rejected — verification has no minimum runtime. |
discovery | min_seconds, max_seconds | 3600–10800 (1h–3h) | Both bounds optional; defaults apply when omitted. |
task | min_seconds, max_seconds | 0–19800 (0–5.5h) | Both bounds optional; defaults apply when omitted. |
discovery and task the server validates min_seconds <= max_seconds
against the effective budget — i.e. caller-supplied values after
defaults are applied. Supplying just one bound that conflicts with the
default for the other (e.g. min_seconds: 14400 on a discovery create with
no max_seconds) is rejected with 400; either supply the other bound
explicitly, or pick a value that fits inside the default range.
The hard upper bound for any single run is 5.5h (19800 seconds).
Response
Returns the newly created test with status201. The response shape is
identical to Get Test.
Authorizations
API key for authentication
Path Parameters
The project ID. You can copy it from the project settings page or the project URL in the dashboard.
Query Parameters
Whether shared collection steps are expanded inline in the response
How to treat shared collection items with inline steps
error, drop Body
Full test case body. Shape varies by test_type (verification, discovery, task); see the docs page for the exact shape.
Folder path placement. "/" or null = root. Mutually exclusive with folder_id.
Folder UUID placement. Mutually exclusive with folder_path.
Response
Test created
Full test case body. Shape varies by test_type (verification, discovery, task); see the docs page for the exact shape.
verification, discovery, task repository, bot Test-level minimum runtime in seconds. Allowed for discovery and task only; sending this on a verification test is rejected with 400. Defaults when omitted: discovery=3600 (1h), task=0. Must be ≤ max_seconds (validated against the effective budget after defaults are applied).
0 <= x <= 19800Test-level maximum runtime in seconds. Hard ceiling for any single run is 19800 (5.5h). Defaults when omitted: verification=19800 (5.5h), discovery=10800 (3h), task=19800 (5.5h).
0 <= x <= 19800