Skip to content

A person opens a case of a run

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

E10 (#1253), the switch autoAssignee of the project’s executionToggles. With it on, the first person to open a case of the run that nobody holds becomes its executor (configuration.assignees) - one statement, so two people opening it at once cannot both win - and a held case is never rewritten. With it off nothing is written. assignee is who holds the case after this (null for nobody); claimed is whether this call made the caller its holder. A reader is refused (403).

id
required
string
caseId
required
string

Who holds the case now

Media type application/json
object
assignee
required
string
nullable
claimed
required
boolean
Example
{
"assignee": null,
"claimed": false
}

No / invalid token or session

read-only member of the project

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

No such run in your projects, or the run does not expect the case

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

The run is finished or terminated

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