openapi: 3.0.1
info:
title: Coveo Activity Activities Facet Field Configurations API
description: API for Coveo Platform
termsOfService: https://www.coveo.com/en/support/terms-agreements
contact:
name: Coveo
url: https://connect.coveo.com/s/discussions
version: 1.0.0
servers:
- url: https://platform.cloud.coveo.com
description: Coveo public API endpoint
security:
- oauth2:
- full
tags:
- name: Facet Field Configurations
paths:
/rest/organizations/{organizationId}/commerce/v2/tracking-ids/{trackingId}/facet/fields/bulk-update:
put:
tags:
- Facet Field Configurations
summary: Update Multiple Facet Fields
description: 'Updates multiple facet fields.Maximum 100 items per request.**Required privilege:** Merchandising Hub - EditPrivilege required
```
{"owner":"COMMERCE","targetDomain":"MERCHANDISING_HUB","type":"EDIT","targetId":"{trackingId}"}
```
**Example:** `acmecorporation8tp8wu3`
required: true
schema:
type: string
- name: trackingId
in: path
description: The unique identifier of the tracking target.
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
type: array
items:
oneOf:
- $ref: '#/components/schemas/ContinuousFacetFieldModel'
- $ref: '#/components/schemas/HierarchicalFacetFieldModel'
- $ref: '#/components/schemas/NumericalRangesFacetFieldModel'
- $ref: '#/components/schemas/RegularFacetFieldModel'
required: true
responses:
'200':
description: OK
content:
'*/*':
schema:
type: array
items:
oneOf:
- $ref: '#/components/schemas/ContinuousFacetFieldModel'
- $ref: '#/components/schemas/HierarchicalFacetFieldModel'
- $ref: '#/components/schemas/NumericalRangesFacetFieldModel'
- $ref: '#/components/schemas/RegularFacetFieldModel'
x-pretty-name: bulkUpdate
x-required-privilege:
owner: COMMERCE
targetDomain: MERCHANDISING_HUB
type: EDIT
targetId: '{trackingId}'
x-required-privileges:
- owner: COMMERCE
targetDomain: MERCHANDISING_HUB
type: EDIT
targetId: '{trackingId}'
x-ui-operation-id: /rest/organizations/paramId/commerce/v2/tracking-ids/paramId/facet/fields/bulk-update_put
/rest/organizations/{organizationId}/commerce/v2/tracking-ids/{trackingId}/facet/fields/bulk-create:
post:
tags:
- Facet Field Configurations
summary: Creates Multiple Facet Fields
description: 'Creates multiple facet fields. Maximum 100 items per request.**Required privilege:** Merchandising Hub - EditPrivilege required
```
{"owner":"COMMERCE","targetDomain":"MERCHANDISING_HUB","type":"EDIT","targetId":"{trackingId}"}
```
**Example:** `acmecorporation8tp8wu3`
required: true
schema:
type: string
- name: trackingId
in: path
description: The unique identifier of the tracking target.
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
type: array
items:
oneOf:
- $ref: '#/components/schemas/ContinuousFacetFieldModel'
- $ref: '#/components/schemas/HierarchicalFacetFieldModel'
- $ref: '#/components/schemas/NumericalRangesFacetFieldModel'
- $ref: '#/components/schemas/RegularFacetFieldModel'
required: true
responses:
'200':
description: OK
content:
'*/*':
schema:
type: array
items:
oneOf:
- $ref: '#/components/schemas/ContinuousFacetFieldModel'
- $ref: '#/components/schemas/HierarchicalFacetFieldModel'
- $ref: '#/components/schemas/NumericalRangesFacetFieldModel'
- $ref: '#/components/schemas/RegularFacetFieldModel'
x-pretty-name: bulkCreate
x-required-privilege:
owner: COMMERCE
targetDomain: MERCHANDISING_HUB
type: EDIT
targetId: '{trackingId}'
x-required-privileges:
- owner: COMMERCE
targetDomain: MERCHANDISING_HUB
type: EDIT
targetId: '{trackingId}'
x-ui-operation-id: /rest/organizations/paramId/commerce/v2/tracking-ids/paramId/facet/fields/bulk-create_post
/rest/organizations/{organizationId}/commerce/v2/tracking-ids/{trackingId}/facet/fields:
get:
tags:
- Facet Field Configurations
summary: Retrieves All Facet Fields
description: 'Retrieve all facet fields.**Required privilege:** Merchandising Hub - ViewPrivilege required
```
{"owner":"COMMERCE","targetDomain":"MERCHANDISING_HUB","type":"VIEW","targetId":"*"}
```
**Example:** `acmecorporation8tp8wu3`
required: true
schema:
type: string
- name: trackingId
in: path
description: The unique identifier of the tracking target.
required: true
schema:
type: string
- name: page
in: query
description: The 0-based index number of the page to retrieve.
required: false
schema:
minimum: 0
type: integer
format: int32
default: 0
- name: perPage
in: query
description: The number of items to return per page.
required: false
schema:
maximum: 100
minimum: 1
type: integer
format: int32
default: 10
responses:
'200':
description: OK
content:
'*/*':
schema:
$ref: '#/components/schemas/PaginatedResponseFacetFieldModel'
x-pretty-name: getAll
x-required-privilege:
owner: COMMERCE
targetDomain: MERCHANDISING_HUB
type: VIEW
targetId: '*'
x-required-privileges:
- owner: COMMERCE
targetDomain: MERCHANDISING_HUB
type: VIEW
targetId: '*'
x-ui-operation-id: /rest/organizations/paramId/commerce/v2/tracking-ids/paramId/facet/fields_get
components:
schemas:
HierarchicalFacetFieldModel:
required:
- displayNames
- field
- initialNumberOfValues
- sortCriteria
type: object
allOf:
- $ref: '#/components/schemas/FacetFieldModel'
- type: object
properties:
id:
type: string
description: The unique identifier of the facet field configuration.
format: uuid
example: 755e2dd8-3a8f-19fb-b9ed-ed89c4f83c3b
field:
maxLength: 255
minLength: 0
type: string
description: The name of the underlying index field. This property can't be updated after creation.
example: ec_category
type:
type: string
description: The type of the facet field.
example: HIERARCHICAL
enum:
- REGULAR
- CONTINUOUS
- NUMERICAL_RANGES
- HIERARCHICAL
displayNames:
uniqueItems: true
type: array
description: A list of localized display names for the facet field. When a localized display name is not provided for a given language, the index non-localized display name is used. If a non-localized display name is not configured, the index field name is used.
items:
$ref: '#/components/schemas/LocalizedValueModel'
injectionDepth:
minimum: 1000
type: integer
description: "The maximum number of items to scan for facet values.\n
When value is not provided:
\n