Link a case to a requirement
const url = 'https://beta-api.plune.ai/v1/requirements/example/cases/example';const options = {method: 'PUT', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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).
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Responses
Section titled “ Responses ”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
object
Example generated
{ "error": "example"}The requirement is archived
object
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.
object
Example generated
{ "error": "example"}Headers
Section titled “Headers ”Seconds until the window rolls over