Skip to main content
Version: 2.0

Replace the filter attributes of a corpus

POST 

/v2/corpora/:corpus_key/replace_filter_attributes

Replace the filter attributes of a corpus. This does not happen immediately, but instead creates a job and will complete when that job completes. Until that job completes, using new filter attributes will not work.

You can monitor the status of the filter change using the returned job id.

Request

Path Parameters

    corpus_key CorpusKeyrequired

    Possible values: <= 50 characters, Value must match regular expression [a-zA-Z0-9_\=\-]+$

    Key of the corpus to have filters replaced.

Body

    filter_attributes object[]required

    The new filter attributes.

  • Array [
  • name stringrequired

    The JSON path of the filter attribute in a document or document part metadata.

    level stringrequired

    Possible values: [document, part]

    Indicates whether this a document or document part metadata filter.

    description string

    Description of the filter. May be omitted.

    indexed boolean

    Default value: true

    Indicates whether an index should be created for the filter. Creating an index will improve query latency when using the filter.

    type stringrequired

    Possible values: [integer, real_number, text, boolean, list[integer], list[real_number], list[text]]

    The value type of the filter.

  • ]

Responses

Successfully created a job that will replace the filter attributes.

Schema
    job_id stringrequired

    Possible values: Value must match regular expression job_.+$

    Job that was created in order to replace filter attributes.

Loading...