v2
latestOpenAPI 3.0.02026-08-051996591.2 MBCorpora
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.
patch/v2/corpora/{corpus_key}
Path parameters
corpus_keystring required
A user-provided key for a corpus.
Example:my-corpus
The unique key identifying the corpus to update.
Headers
Request-Timeoutinteger
The platform makes a best effort to complete the request in the specified seconds, or it times out.
Request-Timeout-Millisinteger
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
}
}