Update index attributes
put
/gsadmin/v1/{appName}/attributes
Updates one or more index attributes in the specified application.
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 index attributes.
Root Schema : IndexAttributes
Type:
objectRepresents index attributes of an application. Child nodes represent the config owner attributes conforming to ConfigOwnerAttributes JSON schema.
- ecr:createDate
-
Type:
string - ecr:lastModified
-
Type:
string - ecr:lastModifiedBy
-
Type:
string - ecr:type
-
Type:
stringDefault Value:attributes-folder
Security
- basicAuth
-
Type:
basicDescription:Basic username/password authentication.
Response
Supported Media Types
- application/json
202 Response
Index attributes 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 an attribute in the specified owner index attributes list.
{
"isWildcardEnabledInRecordSearch": true,
"displayOrder": 4,
"sourcePropertyNames": ["camera.Colour of product"],
"isAutogen": true,
"isRecordSearchEnabled": true,
"ecr:type": "dimension"
}