KumkuatKumkuat
API reference › Documents

Retag a document

POST/api/v1/documents/{doc_id}/retag

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
In the full reference
REQUEST
curl -X POST "https://gateway.kumkuat.ai/api/v1/documents/string/retag" \
  -H "X-API-Key: YOUR_KEY"
Try it — sign in first
Runs on a sandbox key: 2000 requests a month. Your real key is for production.