Requirements API
Unlink tests from a requirement
Remove links between a requirement and tests. Requires requirement:update. Pass a single test with the testId query parameter, or several in a JSON body { "testIds": [...] }. Unlinking a test that is not linked is a no-op.
DELETE
bearerAuthheader
AuthorizationBearer <token>Project-scoped CLI token (sck_live_* or sck_test_*) for documented API operations that accept bearer authentication. Interactive browser operations may require a session cookie. Trigger keys (sck_trigger_* / legacy job_*) are accepted only by job trigger endpoints.
id*stringRequirement ID
Format
uuidtestId?stringSingle test to unlink. When present, the request body is ignored.
Format
uuidapplication/json- body
testIds*array<>Items
1 <= items <= 100Requirement with its updated links
application/json- response
requirement?Requirement as returned by the detail, create, update and test-link endpoints.
curl -X DELETE 'https://demo.supercheck.dev/api/requirements/497f6eca-6276-4993-bfeb-53cbbbba6f08/tests' \ -H 'Content-Type: application/json' \ -d '{ "testIds": [ "59250cde-f034-4b67-8215-4abdcfc601c8" ]}'Example Response
{ "requirement": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "title": "string", "description": "string", "priority": "low", "tags": [ "string" ], "externalId": "string", "externalUrl": "string", "testIds": [ "59250cde-f034-4b67-8215-4abdcfc601c8" ], "coverage": { "status": "covered", "linkedTestCount": 0, "passedTestCount": 0, "failedTestCount": 0, "lastEvaluatedAt": "2019-08-24T14:15:22Z" }, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }}