Set the cases that test an endpoint
const url = 'https://beta-api.plune.ai/v1/api-endpoints/example/cases';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"testCaseIds":["6f1c2b3a-0000-4000-8000-0000000000c1"]}'};
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/api-endpoints/example/cases \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "testCaseIds": [ "6f1c2b3a-0000-4000-8000-0000000000c1" ] }'The whole set at once; [] unlinks every case. Each a live case of your project - one that is not, or is another project’s, is the same 404.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The endpoint’s id
Request Body required
Section titled “Request Body required ”object
The whole set; [] unlinks every case
Example
{ "testCaseIds": [ "6f1c2b3a-0000-4000-8000-0000000000c1" ]}Responses
Section titled “ Responses ”The endpoint with its cases
object
The API it belongs to (#2398); one endpoint a method and path shape within an API
A template, /orders/{orderId}; one endpoint a method and path shape, whatever its parameters are called
Where the catalog learnt of it; a description replaces traffic once one names it
derived - inferred from examples or traffic (x-cairn-derived); confirmed - a written spec or a person says so
A spec, the code or a person describes it - not only traffic. The drift tells its two sides apart by it
The auth scheme names it asks for; [] public, null not known
When traffic last showed it
Where traffic last showed it
object
The live cases linked to it, each with its external keys - the tests that run it
object
An identifier another tool already uses for this test, so a report can find its case without anyone typing a Plune id. The order of kind is load-bearing: it is the ranking that decides which key wins when several match different cases.
object
Example
{ "id": "6f1c2b3a-0000-4000-8000-000000002192", "projectId": "u-shop::default", "apiId": "4b6f3c1e-8d2a-4f5b-9c7e-1a2b3c4d5e6f", "method": "GET", "path": "/orders/{orderId}", "source": "spec", "trust": "confirmed", "inSpec": true, "summary": "One order", "auth": [ "bearerAuth" ], "lastSeenAt": "2026-11-03T10:00:00.000Z", "lastSeenEnvironment": "beta", "createdBy": "6f1c2b3a-0000-4000-8000-0000000000a2", "createdAt": "2026-11-04T09:00:00.000Z", "updatedAt": "2026-11-04T09:05:00.000Z", "coverage": { "cases": [ { "id": "6f1c2b3a-0000-4000-8000-0000000000c1", "title": "Read an order", "externalKeys": [ { "kind": "playwright-id", "value": "orders.spec.ts:12" } ] } ] }}Invalid JSON or body
object
Example generated
{ "error": "example"}No / invalid token or session
You are in the project as a reader, or the token is read-only
No such endpoint in your project, or a case that is not a live case of it
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