Partial update an index attribute

patch

/gsadmin/v1/{appName}/attributes/{owner}/{attributeName}

Partial updates the specific index attribute in the given config owner attributes list.

Request

Supported Media Types
  • application/json
Path Parameters
appName
Type: string
Required: true
Specifies the name of your application, for example, Discover.
attributeName
Type: string
Required: true
Specifies the attribute name in the owner's index attributes, for example, "product.name"
owner
Type: string
Required: true
Specifies the owner of the index attributes, for example, system.
Body Parameter
The request body represents the partially updated index attribute.
Root Schema : Attribute
Type: object
Represents an index attribute. The object conforms to one of the following ecr-types:
  • dimension
  • property
  • derived-property
Nested Schema : context
Type: array
Nested Schema : DisplayConfig
Type: object
Contains configuration on how to display an attribute and its values.
Nested Schema : sourcePropertyNames
Type: array
Security
basicAuth
Type: basic
Description: Basic username/password authentication.

Response

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

Examples

Request Body Example

The following shows a sample request body to partially update an attribute in the specified owner index attributes list.

{
  "isRecordSearchEnabled": false,
  "ecr:type": "dimension"
}