A person opens a case of a run
const url = 'https://beta-api.plune.ai/v1/runs/example/cases/example/open';const options = {method: 'POST', 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 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).
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Responses
Section titled “ Responses ”Who holds the case now
object
Example
{ "assignee": null, "claimed": false}No / invalid token or session
read-only member of the project
object
Example generated
{ "error": "example"}No such run in your projects, or the run does not expect the case
object
Example generated
{ "error": "example"}The run is finished or terminated
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