Update a corpus
Enables, disables, or updates the name and description of a corpus. Use this endpoint to manage the availability of data, such as taking a corpus offline without deleting it.
You can also use automated scripts to control the availability of corpora based on certain conditions. For example, quickly disable a corpus for maintenance updates or in response to security incidents.
Path parameters
A user-provided key for a corpus.
The unique key identifying the corpus to update.
Headers
The platform makes a best effort to complete the request in the specified seconds, or it times out.
The platform makes a best effort to complete the request in the specified milliseconds, or it times out.
Request body
Example request
{
"name": "new-corpus-name",
"description": "New description of the corpus."
}Response
Successfully updated the corpus.
Example response
{
"id": "crp_1",
"key": "my-corpus",
"name": "Vectara Content",
"description": "Description about the Vectara Content corpus.",
"encoder_name": "boomerang-2023-q3",
"filter_attributes": [
{
"name": "Title",
"level": "document",
"description": "The title of the document.",
"type": "text"
}
],
"custom_dimensions": [
{
"name": "importance",
"description": "Product importance."
}
],
"limits": {
"used_docs": 8,
"used_parts": 3748,
"used_bytes": 795790,
"used_characters": 1839847,
"max_metadata_bytes": 10485760
}
}Changes
No recorded changes to this endpoint across all 8 revisions of this API.