---
title: Discard suggestion document
slug: test-archbee/discard-suggestion-document
docTags: 
createdAt: 2026-02-24T08:46:16.000Z
---

\{
"id": "lZdnN9WrtgJ7L31DGdix5",
"type": "api-oas-v2",
"data": \{
"method": "POST",
"url": "[https://api.archbee.com/api/public-api/suggest-change/discard](https://api.archbee.com/api/public-api/suggest-change/discard)",
"servers": \[
\{
"url": "[https://api.archbee.com/api/public-api/suggest-change/discard](https://api.archbee.com/api/public-api/suggest-change/discard)",
"description": "Archbee API Server"
}
],
"name": "Discard suggestion document",
"description": "Discard and delete a suggestion document without merging it into the base document. The suggestion document must have a docId starting with 'SUGGEST-'.",
"contentType": "application/json",
"request": \{
"pathParameters": \[],
"headerParameters": \[
\{
"kind": "required",
"name": "Content-Type",
"type": "string",
"example": "application/json",
"description": ""
}
],
"queryParameters": \[],
"bodyDataParameters": \[
\{
"kind": "required",
"name": "body",
"type": "object",
"description": "",
"schema": \[
\{
"name": "docId",
"kind": "required",
"type": "string",
"description": "The ID of the suggestion document to discard. Must start with 'SUGGEST-'.",
"example": "SUGGEST-21character\_string"
}
],
"isExpanded": true
}
],
"formDataParameters": \[],
"oAuthParameters": \[
\{
"id": "bearerAuth",
"name": "bearerAuth",
"kind": "optional",
"type": "http",
"description": "Requires the&#x20;

:::Iframe{code="<code>"}

:::

Authorization header in the form&#x20;

:::Iframe{code="<code>"}

:::

Authorization: Bearer \{base64(docSpaceId\~apiKey)} Where the token is base64 encoding of docSpaceId, tilde, and apiKey.",
"scheme": "bearer"
}
]
},
"responses": \[
\{
"statusCode": "200",
"description": "Suggestion successfully discarded",
"jsonExample": "",
"isExpanded": true,
"schema": \[
\{
"kind": "optional",
"type": "object",
"description": "",
"schema": \[
\{
"name": "status",
"kind": "optional",
"type": "string",
"description": "",
"example": "OK"
}
],
"isExpanded": true
}
]
},
\{
"statusCode": "400",
"description": "Bad Request",
"jsonExample": "",
"isExpanded": true,
"schema": \[
\{
"kind": "optional",
"type": "object",
"description": "",
"customType": "Response400",
"schema": \[
\{
"name": "status",
"kind": "optional",
"type": "string\<OK | Not OK>",
"description": "Response Status",
"example": "Not OK"
},
\{
"name": "messages",
"kind": "optional",
"type": "array",
"description": "Array of messages",
"example": "\["Some error message"]",
"itemType": "string",
"customType": "string\[]",
"itemExample": "Some error message",
"itemDefault": ""
}
],
"modelRef": "#/components/schemas/Response400",
"isExpanded": true
}
]
}
],
"hasXCodeSamples": false,
"examples": \{
"languages": \[
\{
"id": "S0nM9HrmLuYhoyrK4DMfd",
"language": "curl",
"label": "cURL",
"code": "curl --request POST \\\n     --url [https://api.archbee.com/api/public-api/suggest-change/discard](https://api.archbee.com/api/public-api/suggest-change/discard) \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --data '\{\n     "docId": "SUGGEST-21character\_string"\n     }'"
},
\{
"id": "dMxi0fI8phMY80VVY2a21",
"language": "javascript",
"label": "javascript",
"code": "var myHeaders = new Headers();\nmyHeaders.append("accept", "application/json");\nmyHeaders.append("content-type", "application/json");\n\nvar raw = JSON.stringify(\{\n   "docId": "SUGGEST-21character\_string"\n});\n\nvar requestOptions = \{\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch("[https://api.archbee.com/api/public-api/suggest-change/discard](https://api.archbee.com/api/public-api/suggest-change/discard)", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
},
\{
"id": "DDqs3-RFY\_ktfNmSWw0oG",
"language": "ruby",
"label": "Ruby",
"code": "require "uri"\nrequire "json"\nrequire "net/http"\n\nurl = URI("[https://api.archbee.com/api/public-api/suggest-change/discard")\n\nhttps](https://api.archbee.com/api/public-api/suggest-change/discard"\)\n\nhttps) = Net\::HTTP.new(url.host, url.port)\nhttps.use\_ssl = true\n\nrequest = Net\::HTTP\::Post.new(url)\nrequest\["accept"] = "application/json"\nrequest\["content-type"] = "application/json"\nrequest.body = JSON.dump(\{\n   "docId": "SUGGEST-21character\_string"\n})\n\nresponse = https.request(request)\nputs response.read\_body\n"
},
\{
"id": "Js7Gxjeo6w8e8EivrQQKt",
"language": "python",
"label": "Python",
"code": "import requests\nimport json\n\nurl = "[https://api.archbee.com/api/public-api/suggest-change/discard"\n\npayload](https://api.archbee.com/api/public-api/suggest-change/discard"\n\npayload) = json.dumps(\{\n   "docId": "SUGGEST-21character\_string"\n})\nheaders = \{\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request("POST", url, headers=headers, data=payload)\n\nprint(response.text)\n"
}
],
"selectedLanguageId": "S0nM9HrmLuYhoyrK4DMfd"
},
"results": \{
"languages": \[
\{
"id": "g46awtaGgGL19mzbJ1RzI",
"language": "200",
"code": "// Suggestion successfully discarded\n\{\n  "status": "OK"\n}"
},
\{
"id": "3Ih0Hwh\_XrlMi452YXWib",
"language": "400",
"code": "// Bad Request\n\{\n  "status": "Not OK",\n  "messages": \[\n    "Some error message"\n  ]\n}"
}
],
"selectedLanguageId": "g46awtaGgGL19mzbJ1RzI"
}
},
"children": \[
\{
"text": ""
}
]
}











