Partially update index attributes
patch
/gsadmin/v1/{appName}/attributes
Partially updates one or more index attributes in the specified application.
Request
Supported Media Types
- application/json
Path Parameters
-
appName: string
Specifies the name of your application. For example, "cloud".
The request body represents the partially 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.
Show Source
-
ecr:createDate(optional):
string
-
ecr:lastModified(optional):
string
-
ecr:lastModifiedBy(optional):
string
-
ecr:type(optional):
string
Default Value:
attributes-folder
Security
-
basicAuth: basic
Type:
basicDescription:Basic username/password authentication.
Response
Supported Media Types
- application/json
202 Response
Index attributes successfully updated.
Examples
Request Body Example
The following shows a sample request body to partially update index attributes.
{
"ecr:type": "attributes-folder",
"system":
{
"ecr:type": "attributes-owner-folder",
"product.min_price": {
"derivedPropertySource": "product.price",
"derivedPropertyFunction": "MIN",
"ecr:type": "derived-property"
}
}
}