getMetadata
get
/ccagent/v1/metadata/{id}
Get Metadata. Get the metadata for an item type
Request
Supported Media Types
- application/json
Path Parameters
- id
-
Type:
stringRequired:trueID of the file.
Query Parameters
- dynamicOnly
-
Type:
booleanIndicates what type of properties to return. If set to true, only dynamic properties will be returned, otherwise all properties will be returned. Only supported for the 'order' item type.- filterByShopperContext
Type:stringIf set to true, filters the dynamic properties that are related to shopper context
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : getMetadata_response
- default
-
Type:
booleanThe default property of the metadata - dimension
-
Type:
stringThe dimension property of the metadata - id
-
Type:
stringThe id of the metadata - itemType
-
Type:
stringThe itemtype property of the metadata - label
-
Type:
stringThe label property of the metadata - length
-
Type:
integerThe length of the metadata - multiSelect
-
Type:
booleanThe multi-select property of the metadata - order
-
Type:
integerThe order of the metadata - required
-
Type:
booleanThe required property of the metadata - searchable
-
Type:
booleanThe searchable property of the metadata - textSearchable
-
Type:
booleanThe textSearchable property of the metadata - type
-
Type:
stringThe type property of the metadata - uiEditorType
-
Type:
stringThe uiEditorType property of the metadata
Example application/json
[
{
"itemType":"product",
"length":254,
"label":"Name",
"type":"shortText",
"required":true,
"searchable":true,
"uiEditorType":null,
"default":null,
"textSearchable":true,
"id":"displayName",
"dimension":null,
"multiSelect":true,
"order":"0"
},
{
"itemType":"product",
"length":165,
"label":"Product ID",
"type":"shortText",
"required":true,
"searchable":null,
"uiEditorType":null,
"default":"",
"textSearchable":null,
"id":"id",
"dimension":null,
"multiSelect":null,
"order":"10"
}
]
Default Response
The error response
Body
Root Schema : errorModel
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - errors
-
Type:
arrayerrorsAdditional Properties Allowed:An optional list of errors if multiple errors were encountered - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code - type
-
Type:
stringThe URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code
Examples
Sample Response Payload returned by endpoint:
[
{
"itemType": "product",
"length": 254,
"label": "Name",
"type": "shortText",
"required": true,
"searchable": true,
"uiEditorType": null,
"default": null,
"textSearchable": true,
"id": "displayName",
"dimension": null,
"multiSelect": true,
"order": "0"
},
{
"itemType": "product",
"length": 165,
"label": "Product ID",
"type": "shortText",
"required": true,
"searchable": null,
"uiEditorType": null,
"default": "",
"textSearchable": null,
"id": "id",
"dimension": null,
"multiSelect": null,
"order": "10"
}
]