Update a search interface
put
/gsadmin/v1/{appName}/searchInterfaces/{searchInterfaceName}
Updates an existing search interface under the search interface folder.
Request
Supported Media Types
- application/json
- application/zip
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 updated.
Body Parameter
The request body represents the updated search interface configuration.
Root Schema : SearchInterface
Type:
object
Represents a search interface in the ECR.
- crossFieldMatch
-
Type:
string
- ecr:createDate
-
Type:
string
- ecr:lastModified
-
Type:
string
- ecr:lastModifiedBy
-
Type:
string
- ecr:type
-
Type:
string
Default Value:search-interface
- fields
-
Type:
array
fieldsAdditional Properties Allowed: - isAutoWildcardEnabled
-
Type:
boolean
If it's set to true, all attributes in this search interface would be enabled for wildcard search. If not defined or set to false, they are not enabled for wildcard search.
Nested Schema : fields
Type:
array
-
Type:
object
SearchInterfaceFieldAdditional Properties Allowed:
Nested Schema : SearchInterfaceField
Type:
object
- attribute
-
Type:
string
- snippetSize
-
Type:
string
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
- message
-
Type:
string
- status
-
Type:
integer
(int32
)
Examples
Request Body Example
The following shows a sample request body to update a search interface.
:content = { "ecr:lastModifiedBy": "admin", "ecr:lastModified": "2016-10-13T09:28:03.310+05:30", "ecr:createDate": "2016-10-13T09:28:03.310+05:30", "ecr:type": "search-interface", "crossFieldMatch": "always", "fields": [ {"attribute": "product.id"}, {"attribute": "product.sku"} {"attribute": "product.long_desc"}, {"attribute": "ecr:crossField"} ] }