Partial update a search interface

patch

/gsadmin/v1/{appName}/searchInterfaces/{searchInterfaceName}

Partial updates an existing search interface under the search interface folder.

Request

Supported Media Types
  • application/json
Path Parameters
appName
Type: string
Required: true
Specifies the name of your application, for example, Discover.
searchInterfaceName
Type: string
Required: true
The name of the search interface to be partially updated.
Body Parameter
The request body represents the partially updated search interface configuration.
Root Schema : SearchInterface
Type: object
Represents a search interface in the ECR.
Nested Schema : fields
Type: array
Nested Schema : SearchInterfaceField
Type: object
Security
basicAuth
Type: basic
Description: Basic username/password authentication.

Response

Supported Media Types
  • application/json
202 Response
Search interface successfully updated.
Body
Root Schema : Response
Type: object

Examples

Request Body Example

The following shows a sample request body to partially update a search interface.

{
  "ecr:type": "search-interface",
  "crossFieldMatch": "always",
  "fields": [
    {
      "attribute": "ecr:crossField"
    }, {
      "snippetSize": 35,
      "attribute": "product.short_desc"
    }
  ]
}