Update document status from AI worker context
PATCH
/
knowledge
/
ai
/
{documentId}
/
status
Update document status from AI worker context
curl --request PATCH \
--url http://localhost:3002/api/v1/knowledge/ai/{documentId}/status \
--header 'x-ai-tool-secret: <x-ai-tool-secret>'const options = {method: 'PATCH', headers: {'x-ai-tool-secret': '<x-ai-tool-secret>'}};
fetch('http://localhost:3002/api/v1/knowledge/ai/{documentId}/status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:3002/api/v1/knowledge/ai/{documentId}/status"
headers = {"x-ai-tool-secret": "<x-ai-tool-secret>"}
response = requests.patch(url, headers=headers)
print(response.text)Last modified on July 18, 2026
⌘I
Update document status from AI worker context
curl --request PATCH \
--url http://localhost:3002/api/v1/knowledge/ai/{documentId}/status \
--header 'x-ai-tool-secret: <x-ai-tool-secret>'const options = {method: 'PATCH', headers: {'x-ai-tool-secret': '<x-ai-tool-secret>'}};
fetch('http://localhost:3002/api/v1/knowledge/ai/{documentId}/status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:3002/api/v1/knowledge/ai/{documentId}/status"
headers = {"x-ai-tool-secret": "<x-ai-tool-secret>"}
response = requests.patch(url, headers=headers)
print(response.text)