Pages

Reindex a document.

Changed on

Re-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.

post/api/v1/projects/{projectId}/pages/{pageId}/reindex

Request

Path parameters

projectIdinteger required

The unique identifier of the agent (formerly known as project).

pageIdinteger required

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

status'error' | 'success'

The status of the response

Example response

{
  "status": "success",
  "data": {
    "updated": true
  }
}

Changes

    • warning

      added the new 422.00 enum value to the / response property for the response status

    • warning

      added the new 422.00 enum value to the / response property for the response status

    • warning

      added the new 422.00 enum value to the / response property for the response status

    • warning

      added the new 422.00 enum value to the / response property for the response status

    • info

      added the non-success response with the status

    • warning

      added the new The Document with the id {pageId} couldn't have been updated enum value to the / response property for the response status

    • info

      removed the Page with id {pageId} cannot be reindexed enum value from the / response property for the response status