Skip to content

Take a defect link off a case

DELETE
/v1/test-cases/{id}/defects/{defectId}
curl --request DELETE \
--url https://beta-api.plune.ai/v1/test-cases/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/defects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>'

Any owner or member of the project may take off any link of the case. Audited on the case as test_case/event, the address as before. A link of another case, or of a result, is a 404 here.

id
required
string format: uuid
defectId
required
string format: uuid
X-Plune-Project
string

Which of your projects to act in — an id from GET /v1/projects. Absent, your default project. A project you are not a member of answers 404, the same as one that does not exist. Ignored under a bearer token, which is bound to the project it was minted in.

Taken off

No / invalid token or session

A reader asked

Media type application/json
object
error
required
string
Example
{
"error": "read-only member"
}

No such link on a case of this project

Media type application/json
object
error
required
string
Example
{
"error": "defect link '6f1c2b3a-0000-4000-8000-0000000000a7' not found"
}

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