Decline a suggestion
const url = 'https://beta-api.plune.ai/v1/question-suggestions/example/decline';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"reason":"Analytics already shows it as Failures by message"}'};
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/decline \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "reason": "Analytics already shows it as Failures by message" }'With the reason its author reads (AC-18), 1 to 500 characters. Decided once: 409 suggestion_decided. 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
{ "reason": "Analytics already shows it as Failures by message"}Responses
Section titled “ Responses ”Declined
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
Example
{ "id": "6f1c2b3a-0000-4000-8000-0000000012a3", "projectId": "u-shop::default", "text": "Which smoke cases are still drafts?", "filter": "tag=smoke&state=draft", "state": "declined", "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": null, "declineReason": "Analytics already shows it as Failures by message", "decidedBy": null, "decidedAt": null, "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