# Retrieve all facet values

Retrieves all values for a specific facet field, including translations and selection state.

Endpoint: POST /api/search/allfacets
Version: v1.0
Security: OAuth2.0

## Security:

  - `OAuth2.0` (unknown)
    oauth2

## Request body:

  - `application/json-patch+json, application/json, text/json, application/*+json` (unknown)
    Facet request resource.

## Request fields (application/json-patch+json):

  - `facetField` (string)
    The name of the facet field to retrieve values for.

  - `query` (string)
    This parameter is generated automatically by Content Hub and contains the information required to restore a search state. Do not create or modify it manually.

  - `searchConfigurationName` (string)
    The name of the search configuration to use for retrieving facet values.

  - `culture` (string)
    The culture to use for retrieving facet values, for example, `en-US` or `fr-FR`.

  - `component` (integer)
    The component ID to use when retrieving facet values.

  - `filters` (array)
    The filters to apply to the facet values. Each filter is a `FieldFilterRequestResource` object that specifies the filter criteria.

  - `filters.name` (string)

  - `filters.definition` (string)

  - `filters.group_identifier` (string)

  - `filters.operator` (string)
    Enum: "None", "Equals", "LessThan", "GreaterThan", "Between", "StartsWith", "EndsWith", "Contains", "FacetEquals", "DoesNotContain", "DoesNotStartWith", "DoesNotEndWith", "LessThanOrEquals", "GreaterThanOrEquals", "DoesNotEqual", "AnyOf", "AllOf", "NoneOf", "Missing", "Exists", "Changed"

  - `filters.values` (array)

  - `filters.nested_values` (array)

  - `filters.hidden` (boolean)

  - `filters.type` (string)
    Enum: "FieldFilter", "InFilter", "DynamicFilter", "Nested", "IdFilter", "SelectionPoolFilter"

  - `filters.role` (string)

  - `filters.visible` (boolean)

  - `filters.multi_select` (boolean)

  - `filters.selection_pool_specs` (object)

  - `filters.selection_pool_specs.pool_id` (integer)

  - `filters.selection_pool_specs.sub_pool_id` (integer)

  - `take_user_settings` (boolean)
    Indicates whether to take user settings into account for the facet values. This is a boolean value, where `true` means user settings are taken into account and `false` means they are not.

  - `l10n` (boolean)
    Indicates whether to use localization for the facet values. This is a boolean value, where `true` means localization is used and `false` means it is not.

## Response 200:

  - `200` (unknown)
    Successful operation

## Response 200 fields (application/json):

  - `self` (object)
    Represents a link to a resource.

  - `self.href` (string)
    Gets or sets the URI that points to the resource this link refers to.

  - `self.filename_properties` (array)
    Gets or sets the URI that points to the resource this link refers to.

  - `self.title` (string)
    Gets or sets the title that describes this link.

  - `self.templated` (boolean)
    Gets or sets a value indicating whether the contained URI is a template.

## Response 400:

  - `400` (unknown)
    Request is not valid

## Response 401:

  - `401` (unknown)
    Unauthorized request or invalid access token

