getMetadata
get
/ccstore/v1/metadata/{id}
Get Metadata. Get the metadata for an item type
Request
Supported Media Types
- application/json
Path Parameters
-
id(required): string
ID of the file.
Query Parameters
-
dynamicOnly: boolean
Indicates 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: string
If 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.
Root Schema : getMetadata_response
Type:
Show Source
object
-
default:
boolean
The default property of the metadata
-
dimension:
string
The dimension property of the metadata
-
id:
string
The id of the metadata
-
itemType:
string
The itemtype property of the metadata
-
label:
string
The label property of the metadata
-
length:
integer
The length of the metadata
-
multiSelect:
boolean
The multi-select property of the metadata
-
order:
integer
The order of the metadata
-
required:
boolean
The required property of the metadata
-
searchable:
boolean
The searchable property of the metadata
-
textSearchable:
boolean
The textSearchable property of the metadata
-
type:
string
The type property of the metadata
-
uiEditorType:
string
The uiEditorType property of the metadata
Example Response (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
Root Schema : errorModel
Type:
Show Source
object
-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
errors:
array errors
An optional list of errors if multiple errors were encountered
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code
-
type:
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code