Data
Replace the filter attributes of a corpus
POST/v2/corpora/:corpus_key/replace_filter_attributes
Replaces the filter attributes of a corpus. The replacement does not happen immediately. This operation creates a job that completes asynchronously. The new filter attributes do not work until the job completes.
Monitor the status of the filter change with the returned job ID. The corpus_key uniquely identifies the corpus.
Request
Responses
- 200
- 403
- 404
- 409
- 422
- 507
Successfully created a job that replaces the filter attributes.
Permissions do not allow replacing filter attributes.
Corpus not found.
Another filter attribute replacement or corpus rebuild is already running for this corpus.
The corpus cannot hold the requested filter attributes. Retrying the same request fails the same way. When the request names more filter attributes than the corpus can hold, the error message states that limit, and a request within it succeeds. When earlier filter attribute changes have used up the corpus's filter attribute capacity, contact Vectara support to rebuild the corpus, which restores it. The error message states which case applies.
The platform's storage for this corpus is temporarily full. This is not your account's storage quota; retry the request later.