Accept a suggestion
const url = 'https://beta-api.plune.ai/v1/question-suggestions/example/accept';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"title":"Smoke cases still in draft"}'};
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/question-suggestions/example/accept \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "title": "Smoke cases still in draft" }'Makes a question of the library from it - the given filter, or the suggestion own (400 filter_required with neither) - and links them. Decided once: 409 suggestion_decided. At most 100 active questions (409 question_limit). Owner or member; a reader gets 403.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Request Body required
Section titled “Request Body required ”object
Example
{ "title": "Smoke cases still in draft"}Responses
Section titled “ Responses ”Accepted, with the question it became
object
object
How many times the same text (case, spaces and closing punctuation aside) was asked while it was open or accepted.
object
Everyone who asked it, each once, the first author first; a gone account is left out. Private, as author.
A person a suggestion names - private, the page marks it so.
object
How many people asked it (asks counts the asks: one person may ask twice).
The question it became, once accepted.
object
object
A question (#1292): a canonical case-filter query string - the one of GET /v1/test-cases and of a plan - and, for the questions a health widget answers, its name.
object
The cases the question asks about: n, and the link.
The cases N counts; absent, every live case of the project.
The handler that answers it, as the Analytics card does.
A starter question key; the page words its title in the reader language by it.
null for a starter question: nobody made it.
Example
{ "suggestion": { "id": "6f1c2b3a-0000-4000-8000-0000000012a3", "projectId": "u-shop::default", "text": "Which smoke cases are still drafts?", "filter": "tag=smoke&state=draft", "state": "accepted", "asks": 1, "author": { "id": "u-shop", "name": "Olena", "email": "olena@shop.example.com" }, "askers": [ { "id": "u-shop", "name": "Olena", "email": "olena@shop.example.com" } ], "askerCount": 1, "questionId": "6f1c2b3a-0000-4000-8000-000000001292", "declineReason": null, "decidedBy": null, "decidedAt": null, "createdAt": "2026-09-16T09:12:04.151Z", "updatedAt": "2026-09-16T09:12:04.151Z" }, "question": { "id": "6f1c2b3a-0000-4000-8000-000000001292", "projectId": "u-shop::default", "title": "Smoke cases still in draft", "config": { "schemaVersion": 1, "kind": "question", "filter": "tag=smoke&state=draft" }, "position": 12, "createdBy": "u-shop", "createdAt": "2026-09-16T09:12:04.151Z", "updatedAt": "2026-09-16T09:12:04.151Z" }}Invalid body or filter
object
Example generated
{ "error": "example"}No / invalid token or session
A read-only member
object
Example generated
{ "error": "example"}No such suggestion in the project
object
Example generated
{ "error": "example"}Already decided, or no room for the question
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