Reindex a document.
Changed onRe-crawls and re-indexes a document to update its content in the knowledge base. Use this when the source content has changed and you want the agent to use the updated version.
Notes: Only works for URL-based documents. For uploaded files, delete and re-upload instead.
Request
- Base URLhttps://app.customgpt.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The unique identifier of the agent (formerly known as project).
The unique identifier of the page to reindex. Obtain page IDs from GET /api/v1/projects/{projectId}/pages.
Response
Updating Document with the new content
Example response
{
"status": "success",
"data": {
"updated": true
}
}Changes
- warning
added the new
422.00enum value to the/response property for the response status - warning
added the new
422.00enum value to the/response property for the response status - warning
added the new
422.00enum value to the/response property for the response status - warning
added the new
422.00enum value to the/response property for the response status - info
added the non-success response with the status
- warning
- warning
added the new
The Document with the id {pageId} couldn't have been updatedenum value to the/response property for the response status - info
removed the
Page with id {pageId} cannot be reindexedenum value from the/response property for the response status
- warning