Create owner attributes
post
/gsadmin/v1/{appName}/attributes/{owner}
Creates a new config owner's index attributes in the given application's index attributes list.
Request
Supported Media Types
- application/json
- application/zip
Path Parameters
-
appName: string
Specifies the name of your application. For example, "cloud".
-
owner: string
Specifies the owner of the index attributes, for example, system.
The owner index attributes to create.
Root Schema : ConfigOwnerAttributes
Type:
objectRepresents a config owner's index attributes. Child nodes represent attributes conforming to one of the following ecr-types:
Show Source
- dimension
- property
- derived-property
-
ecr:createDate(optional):
string
-
ecr:lastModified(optional):
string
-
ecr:lastModifiedBy(optional):
string
-
ecr:type(optional):
string
Default Value:
attributes-owner-folder
Security
-
basicAuth: basic
Type:
basicDescription:Basic username/password authentication.
Response
Supported Media Types
- application/json
201 Response
Owner index attributes successfully created.
Examples
Request Body Example
The following shows a sample request body to create owner index attributes.
:content = {
"ecr:lastModifiedBy": "admin",
"ecr:lastModified": "2016-03-01T18:36:14.663+05:30",
"ecr:createDate": "2016-03-01T18:36:14.441+05:30",
"ecr:type": "attributes-owner-folder",
"camera.35_mm_camera_lens_equivalent": {
"propertyDataType": "ALPHA",
"sourcePropertyNames": ["camera.35 mm camera lens equivalent"],
"ecr:type": "property"
},
"camera.color": {
"isWildcardEnabledInRecordSearch": true,
"displayOrder": 4,
"sourcePropertyNames": ["camera.Colour of product"],
"isAutogen": true,
"isRecordSearchEnabled": true,
"ecr:type": "dimension"
},
"product.max_price": {
"derivedPropertySource": "product.price",
"derivedPropertyFunction": "MAX",
"ecr:type": "derived-property"
}
}