Reindex knowledge
import requests
url = "https://api.datagrid.com/v1/knowledge/{knowledge_id}/reindex"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.datagrid.com/v1/knowledge/{knowledge_id}/reindex', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://api.datagrid.com/v1/knowledge/{knowledge_id}/reindex \
--header 'Authorization: Bearer <token>'{
"status_code": 123,
"error": "rate_limit_exceeded",
"message": "<string>",
"retryable": true,
"statusCode": 123,
"mitigation": "<string>",
"details": {
"reason": "<string>"
}
}Knowledge
Reindex knowledge
Manually trigger a full re-indexing of the knowledge. The reindex runs asynchronously: the API returns as soon as the job is enqueued. Re-indexing is not performed immediately. This endpoint consumes credits — the actual credit cost is variable, based on the volume of data being re-indexed, and is charged asynchronously as processing completes. If the background re-index later fails, subsequent retrievals surface that terminal state through status and last_error.
POST
/
knowledge
/
{knowledge_id}
/
reindex
Reindex knowledge
import requests
url = "https://api.datagrid.com/v1/knowledge/{knowledge_id}/reindex"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.datagrid.com/v1/knowledge/{knowledge_id}/reindex', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://api.datagrid.com/v1/knowledge/{knowledge_id}/reindex \
--header 'Authorization: Bearer <token>'{
"status_code": 123,
"error": "rate_limit_exceeded",
"message": "<string>",
"retryable": true,
"statusCode": 123,
"mitigation": "<string>",
"details": {
"reason": "<string>"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The id of the knowledge to reindex.
Response
Reindex job triggered successfully. The reindex runs asynchronously; there is no immediate re-indexing.