getMetadata
get
/ccadmin/v1/metadata/{id}
Get Metadata. Gets the properties for the following item types by ID: product, category, layout and seoMetaInfo. Optionally takes the x-ccasset-language header to get translated content in another language.
Request
Supported Media Types
- application/json
Path Parameters
-
id: string
The ID of the itemType.
Query Parameters
-
layoutName(optional): string
String of the layout name to retrive, iff the item is a layout.
-
showHidden(optional): boolean
Boolean flag to show hidden properties.
Header Parameters
-
X-CCAsset-Language(optional): string
The asset language of the request
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : getMetadata_response
Type:
Show Source
object
-
default(optional):
boolean
The default property of the metadata
-
dimension(optional):
string
The dimension property of the metadata
-
id(optional):
string
The id of the metadata
-
itemType(optional):
string
The itemtype property of the metadata
-
label(optional):
string
The label property of the metadata
-
length(optional):
integer
The length of the metadata
-
multiSelect(optional):
boolean
The multi-select property of the metadata
-
order(optional):
integer
The order of the metadata
-
required(optional):
boolean
The required property of the metadata
-
searchable(optional):
boolean
The searchable property of the metadata
-
textSearchable(optional):
boolean
The textSearchable property of the metadata
-
type(optional):
string
The type property of the metadata
-
uiEditorType(optional):
string
The uiEditorType property of the metadata
Example Response (application/json)
[
{
"itemType":"product",
"hidden":false,
"length":1,
"variantBasedDisplay":false,
"label":"Discountable",
"type":"checkbox",
"required":false,
"searchable":false,
"writable":null,
"internalOnly":false,
"uiEditorType":null,
"default":true,
"listingVariant":false,
"localizable":false,
"textSearchable":false,
"id":"discountable",
"dimension":false,
"editableAttributes":[
"internalOnly",
"default",
"listingVariant",
"hidden",
"variantBasedDisplay",
"textSearchable",
"label",
"dimension",
"required",
"searchable",
"order",
"multiSelect"
],
"order":"-2",
"multiSelect":null
},
{
"itemType":"product",
"hidden":false,
"wildcardSearchable":true,
"label":"Name",
"type":"shortText",
"required":true,
"searchable":true,
"writable":"true",
"internalOnly":null,
"default":null,
"textSearchable":true,
"id":"displayName",
"dimension":null,
"editableAttributes":[
"textSearchable",
"dimension",
"internalOnly",
"default",
"order",
"hidden",
"label",
"wildcardSearchable",
"searchable"
],
"order":"0"
},
{
"itemType":"product",
"hidden":false,
"wildcardSearchable":null,
"label":"Product Number",
"type":"shortText",
"required":true,
"searchable":null,
"writable":false,
"internalOnly":null,
"default":"p1815",
"textSearchable":null,
"id":"productNumber",
"dimension":null,
"editableAttributes":[
"textSearchable",
"dimension",
"internalOnly",
"default",
"order",
"hidden",
"label",
"wildcardSearchable",
"searchable"
],
"order":"10"
},
{
"itemType":"product",
"hidden":false,
"wildcardSearchable":true,
"label":"Description",
"type":"shortText",
"required":false,
"searchable":true,
"writable":"true",
"internalOnly":null,
"default":"A Cloud Lake Product.",
"textSearchable":true,
"id":"description",
"dimension":null,
"editableAttributes":[
"textSearchable",
"dimension",
"internalOnly",
"default",
"order",
"hidden",
"label",
"required",
"wildcardSearchable",
"searchable"
],
"order":"10"
},
{
"itemType":"product",
"hidden":false,
"wildcardSearchable":null,
"label":"Brand",
"type":"shortText",
"required":false,
"searchable":null,
"writable":"true",
"internalOnly":null,
"default":null,
"textSearchable":null,
"id":"brand",
"dimension":null,
"editableAttributes":[
"textSearchable",
"dimension",
"internalOnly",
"default",
"order",
"hidden",
"label",
"required",
"wildcardSearchable",
"searchable"
],
"order":"15"
},
{
"itemType":"product",
"hidden":false,
"wildcardSearchable":null,
"label":"Default List Price",
"type":"currency",
"required":true,
"searchable":true,
"writable":"true",
"internalOnly":null,
"default":null,
"textSearchable":null,
"id":"listPrice",
"dimension":null,
"editableAttributes":[
"textSearchable",
"dimension",
"internalOnly",
"default",
"order",
"hidden",
"label",
"wildcardSearchable",
"searchable"
],
"order":"20"
},
{
"itemType":"product",
"hidden":false,
"wildcardSearchable":null,
"label":"Default Sale Price",
"type":"currency",
"required":false,
"searchable":true,
"writable":"true",
"internalOnly":null,
"default":null,
"textSearchable":null,
"id":"salePrice",
"dimension":null,
"editableAttributes":[
"textSearchable",
"dimension",
"internalOnly",
"default",
"order",
"hidden",
"label",
"required",
"wildcardSearchable",
"searchable"
],
"order":"20"
},
{
"itemType":"product",
"hidden":false,
"wildcardSearchable":null,
"label":"Product Code for US Taxes",
"type":"shortText",
"required":false,
"searchable":null,
"writable":"true",
"internalOnly":null,
"default":null,
"textSearchable":null,
"id":"taxCode",
"dimension":null,
"editableAttributes":[
"textSearchable",
"dimension",
"internalOnly",
"default",
"order",
"hidden",
"label",
"required",
"wildcardSearchable",
"searchable"
],
"order":"25"
},
{
"itemType":"product",
"hidden":false,
"wildcardSearchable":true,
"label":"Long Description",
"type":"shortText",
"required":false,
"searchable":true,
"writable":"true",
"internalOnly":null,
"default":null,
"textSearchable":true,
"id":"longDescription",
"dimension":null,
"editableAttributes":[
"textSearchable",
"dimension",
"internalOnly",
"default",
"order",
"hidden",
"label",
"required",
"wildcardSearchable",
"searchable"
],
"order":"30"
},
{
"itemType":"product",
"hidden":false,
"wildcardSearchable":true,
"label":"Active",
"type":"checkbox",
"required":false,
"searchable":true,
"writable":"true",
"internalOnly":null,
"default":null,
"textSearchable":true,
"id":"active",
"dimension":null,
"editableAttributes":[
"textSearchable",
"dimension",
"internalOnly",
"default",
"order",
"hidden",
"label",
"required",
"wildcardSearchable",
"searchable"
],
"order":"50"
},
{
"itemType":"product",
"hidden":false,
"wildcardSearchable":null,
"label":"Arrival Date",
"type":"date",
"required":false,
"searchable":null,
"writable":"true",
"internalOnly":null,
"default":null,
"textSearchable":null,
"id":"arrivalDate",
"dimension":null,
"editableAttributes":[
"textSearchable",
"dimension",
"internalOnly",
"default",
"order",
"hidden",
"label",
"required",
"wildcardSearchable",
"searchable"
],
"order":"60"
},
{
"itemType":"product",
"hidden":false,
"wildcardSearchable":true,
"label":"Height",
"type":"number",
"required":true,
"searchable":true,
"writable":"true",
"internalOnly":false,
"default":4,
"textSearchable":true,
"id":"height",
"dimension":true,
"editableAttributes":[
"textSearchable",
"dimension",
"internalOnly",
"default",
"order",
"hidden",
"label",
"required",
"wildcardSearchable",
"searchable"
],
"order":"70"
},
{
"itemType":"product",
"hidden":false,
"wildcardSearchable":null,
"label":"Length",
"type":"number",
"required":false,
"searchable":null,
"writable":"true",
"internalOnly":null,
"default":null,
"textSearchable":null,
"id":"length",
"dimension":null,
"editableAttributes":[
"textSearchable",
"dimension",
"internalOnly",
"default",
"order",
"hidden",
"label",
"required",
"wildcardSearchable",
"searchable"
],
"order":"80"
},
{
"itemType":"product",
"hidden":false,
"wildcardSearchable":null,
"label":"Width",
"type":"number",
"required":false,
"searchable":false,
"writable":"true",
"internalOnly":false,
"default":6,
"textSearchable":false,
"id":"width",
"dimension":false,
"editableAttributes":[
"textSearchable",
"dimension",
"internalOnly",
"default",
"order",
"hidden",
"label",
"required",
"wildcardSearchable",
"searchable"
],
"order":"90"
},
{
"itemType":"product",
"hidden":false,
"wildcardSearchable":null,
"label":"Weight",
"type":"number",
"required":false,
"searchable":null,
"writable":"true",
"internalOnly":null,
"default":null,
"textSearchable":null,
"id":"weight",
"dimension":null,
"editableAttributes":[
"textSearchable",
"dimension",
"internalOnly",
"default",
"order",
"hidden",
"label",
"required",
"wildcardSearchable",
"searchable"
],
"order":"100"
},
{
"itemType":"product",
"hidden":false,
"wildcardSearchable":null,
"label":"Order Limit",
"type":"digit",
"required":false,
"searchable":null,
"writable":"true",
"internalOnly":null,
"default":null,
"textSearchable":null,
"id":"orderLimit",
"dimension":null,
"editableAttributes":[
"textSearchable",
"dimension",
"internalOnly",
"default",
"order",
"hidden",
"label",
"required",
"wildcardSearchable",
"searchable"
],
"order":"110"
},
{
"itemType":"product",
"hidden":false,
"length":0,
"variantBasedDisplay":null,
"label":"salePrices",
"type":"currencyMap",
"required":false,
"searchable":false,
"writable":true,
"internalOnly":null,
"default":{
},
"listingVariant":null,
"localizable":false,
"textSearchable":false,
"id":"salePrices",
"dimension":false,
"editableAttributes":[
"dimension",
"multiSelect",
"textSearchable",
"default",
"internalOnly",
"order",
"listingVariant",
"hidden",
"label",
"required",
"variantBasedDisplay",
"searchable"
],
"multiSelect":null,
"order":null
},
{
"itemType":"product",
"hidden":false,
"length":0,
"variantBasedDisplay":null,
"label":"shippingSurcharges",
"type":"currencyMap",
"required":false,
"searchable":false,
"writable":true,
"internalOnly":null,
"default":{
},
"listingVariant":null,
"localizable":false,
"textSearchable":false,
"id":"shippingSurcharges",
"dimension":false,
"editableAttributes":[
"dimension",
"multiSelect",
"textSearchable",
"default",
"internalOnly",
"order",
"listingVariant",
"hidden",
"label",
"required",
"variantBasedDisplay",
"searchable"
],
"multiSelect":null,
"order":null
},
{
"itemType":"product",
"hidden":false,
"length":0,
"variantBasedDisplay":null,
"label":"listPrices",
"type":"currencyMap",
"required":false,
"searchable":false,
"writable":true,
"internalOnly":null,
"default":{
},
"listingVariant":null,
"localizable":false,
"textSearchable":false,
"id":"listPrices",
"dimension":false,
"editableAttributes":[
"dimension",
"multiSelect",
"textSearchable",
"default",
"internalOnly",
"order",
"listingVariant",
"hidden",
"label",
"required",
"variantBasedDisplay",
"searchable"
],
"multiSelect":null,
"order":null
}
]
Default Response
The error response.
The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud:
|Error Code|Description|
|------------------|------------------|
|33013|Get ItemDescriptor Error|
Root Schema : errorModel
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
errors(optional):
array errors
An optional list of errors if multiple errors were encountered
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code
-
type(optional):
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(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code