Skip to content

Link a case to a requirement

PUT
/v1/requirements/{id}/cases/{caseId}
curl --request PUT \
--url https://beta-api.plune.ai/v1/requirements/example/cases/example \
--header 'Authorization: Bearer <token>'

An owner’s or a member’s. Many-to-many: a requirement has many cases and a case many requirements; the link is seen from both sides (GET /v1/requirements/{id}, GET /v1/test-cases/{id}/requirements). Linking twice is one link (200 the second time, 201 the first). Both must be in the same project; a case in the Bin is not a case here. An archived requirement takes no new case (409).

id
required
string
caseId
required
string

Already linked; the requirement with its cases

Linked; the requirement with its cases

No / invalid token or session

You are in the project as a reader

No such requirement or case in your projects

Media type application/json
object
error
required
string
Example generated
{
"error": "example"
}

The requirement is archived

Media type application/json
object
error
required
string
Example generated
{
"error": "example"
}

Rate-limited: the per-route throttle, or the per-minute request limit of the plan an API token counts by (#1442; the body names the plan, #2092). Retry-After carries the seconds until the window rolls over.

Media type application/json
object
error
required
string
Example generated
{
"error": "example"
}
Retry-After
integer

Seconds until the window rolls over