Test Plans

Add tests to a test plan

Changed on

Member-only (role >= member), re-checked live server-side, and only while the plan is Open. Every submitted Test id must belong to the plan's own project (derived from its chained ATCs); a mismatch, a nonexistent id, or a foreign-workspace id are all rejected uniformly (422 test_outside_plan_project), with no id disclosed back. A Test already in the plan rejects the WHOLE request (409 conflict) rather than partially applying. Requires an Idempotency-Key header; a rapid double-submit of the same selection is deduplicated by the header AND independently by the database unique constraint.

post/api/v1/test-plans/{id}/tests

Request

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

Path parameters

idstring uuid required

Request body

test_idsstring[] required

At least one Test id from the plan's own project.

Response

Tests added.

test_plan_idstring uuid required
added_countinteger required
member_countinteger required

Total member count after this add.

Changes