Update a search interface folder
put
/gsadmin/v1/{appName}/searchInterfaces
Updates a collection of search interfaces in the existing search interface folder.
Request
Supported Media Types
- application/json
- application/zip
Path Parameters
- appName
-
Type:
stringRequired:trueSpecifies the name of your application, for example, Discover.
Body Parameter
The request body represents the updated search interface folder.
Root Schema : SearchInterfaceFolder
Type:
objectRepresents the search interface folder in the ECR. Child nodes should represent search interfaces that conform to SearchInterface JSON schema.
- ecr:createDate
-
Type:
string - ecr:lastModified
-
Type:
string - ecr:lastModifiedBy
-
Type:
string - ecr:type
-
Type:
stringDefault Value:search-interface-folder
Security
- basicAuth
-
Type:
basicDescription:Basic username/password authentication.
Response
Supported Media Types
- application/json
202 Response
Search interface folder 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 the search interface folder.
{
"ecr:lastModifiedBy": "admin",
"ecr:lastModified": "2016-01-13T08:21:15.372+05:30",
"ecr:createDate": "2016-01-13T08:21:15.372+05:30",
"ecr:type": "search-interfacer",
"ecr:type": "search-interface",
"crossFieldMatch": "always",
"fields": [
{"attribute": "product.id"},
{"attribute": "product.sku"},
{"attribute": "product.long_desc"},
{"attribute": "ecr:crossField"}
]
}