POST/api/v1/documents/{doc_id}/retag
Retag a document
Retag a document by rerunning all auto tags.<br/><br/>A retag replaces the document's applied tags with fresh model extractions,<br/>so it is editing that document: member or above, as PATCH<br/>/api/v1/documents/<doc_id> takes. The document must be in the caller's<br/>workspace and not hidden from them by a restricted knowledge base (KS-436);<br/>otherwise it answers 404, the same as an id that does not exist.
PARAMETERS
- doc_idpath · stringREQUIRED
- Document id.e.g. string
REQUEST
curl -X POST "https://gateway.kumkuat.ai/api/v1/documents/string/retag" \ -H "X-API-Key: YOUR_KEY"
import requests
r = requests.post("https://gateway.kumkuat.ai/api/v1/documents/string/retag", headers={"X-API-Key": "YOUR_KEY"})
print(r.status_code, r.headers.get("X-Gw-Remaining"))
print(r.json())
const r = await fetch("https://gateway.kumkuat.ai/api/v1/documents/string/retag", {
method: "POST",
headers: { "X-API-Key": "YOUR_KEY" }
});
console.log(r.status, r.headers.get("X-Gw-Remaining"));
console.log(await r.json());
