Tests

Create a Test by chaining ATCs

Changed on

Bearer atc:write (or cookie session). Transactional create across tests + test_steps + activity log via one SECURITY DEFINER RPC. The Test binds to the workspace resolved at the submit instant: explicit workspace_id wins, else the cookie session's active workspace; token-authenticated callers must send workspace_id. Chain order follows the atc_ids array; duplicates are preserved.

post/api/v1/tests

Request

  • Base URL: http://localhost:3000
  • URL: http://localhost:3000/api/v1/tests
  • Auth: one of:
    • API key in cookie sb-fmbpikzpkafptqximhxn-auth-token
    • HTTP bearer

Headers

Idempotency-Keystring required

Required. 8–128 chars, [a-zA-Z0-9_-]. A replay with the same key and payload returns the stored 201 snapshot; the same key with a different payload returns 409 conflict; a concurrent request with the same key while the first is still in flight also returns 409 conflict. Window: 24h.

Request body

titlestring required

Trimmed before validation; 1–200 chars after trim.

atc_idsstring[] required

Ordered chain, ≥1. Duplicates are legal — a chain is a sequence, not a set. No server-side length cap.

workspace_idstring uuid

Required for token-authenticated (Bearer) callers. Cookie sessions default to the active workspace at the submit instant.

Response

Test created.

Changes

    • warning

      added the new test_outside_plan_project enum value to the / response property for the response status

    • warning

      added the new test_outside_plan_project enum value to the / response property for the response status

    • warning

      added the new test_outside_plan_project enum value to the / response property for the response status

    • warning

      added the new test_outside_plan_project enum value to the / response property for the response status

    • warning

      added the new test_outside_plan_project enum value to the / response property for the response status

    • warning

      added the new test_outside_plan_project enum value to the / response property for the response status

    • info

      removed the test_outside_plan_project enum value from the / response property for the response status

    • info

      removed the test_outside_plan_project enum value from the / response property for the response status

    • info

      removed the test_outside_plan_project enum value from the / response property for the response status

    • info

      removed the test_outside_plan_project enum value from the / response property for the response status

    • info

      removed the test_outside_plan_project enum value from the / response property for the response status

    • info

      removed the test_outside_plan_project enum value from the / response property for the response status