reorderSkuProperties
post
/ccadmin/v1/skuProperties/reorder
Change the display order of SKU dynamic properties for a specific product type. **Requires the x-ccasset-language header so translated content can be set for a specific language.**
Request
Supported Media Types
- application/json
Header Parameters
-
X-CCAsset-Language: string
The asset language of the request
Root Schema : reorderSkuProperties_request
Type:
Show Source
object
-
items(optional):
array items
An array containing a list of SKU properties whose order will be updated.
-
productTypeId:
string
Product type ID of the properties to be retrieved
Example:
{
"items":[
{
"id":"displayName",
"order":"-16"
},
{
"id":"id",
"order":"-8"
}
],
"productTypeId":"product"
}
Nested Schema : items
Type:
array
An array containing a list of SKU properties whose order will be updated.
Show Source
Nested Schema : items
Type:
Show Source
object
-
id(optional):
string
ID of this SKU dynamic property.
-
order(optional):
string
Relative order of the property among all of the SKU properties.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : reorderSkuProperties_response
Type:
Show Source
object
-
items(optional):
array items
An array containing a list of sku properties after the order has been updated
Nested Schema : items
Type:
array
An array containing a list of sku properties after the order has been updated
Show Source
Nested Schema : items
Type:
Show Source
object
-
default(optional):
string
Default value of this property.
-
dimension(optional):
boolean
Allow property to be a search facet on the storefront.
-
editableAttributes(optional):
array editableAttributes
Attributes of this property that can be edited.
- hidden(optional): boolean
-
id(optional):
string
ID of this SKU dynamic property.
-
internalOnly(optional):
boolean
Flag to determine if the property is visible through only Admin or also Storefront.
-
itemType(optional):
string
The item type that the property is defined on. For example, if the product type is "SampleType" then this value would be "sku-SampleType".
-
label(optional):
boolean
The display label of the property.
-
length(optional):
integer
Maximum length of the property value.
-
listingVariant(optional):
boolean
Whether it is listing variant.
-
localizable(optional):
boolean
Flag indicating if the property value can be localized.
-
multiSelect(optional):
boolean
Whether the property is a multi-select search facet.
-
order(optional):
string
Relative order of the property among all of the SKU properties.
-
propertyType(optional):
string
Type of the property. It could be sku-custom for a custom level sku property or sku-base for a sku property defined at base product level.
-
required(optional):
boolean
Whether the property value is required.
-
searchable(optional):
boolean
Whether the property is searchable on the storefront.
-
textSearchable(optional):
boolean
Whether the property is text searchable on the storefront.
-
type(optional):
string
The data type of the property. Possible values are shortText, longText, richText, number, date or checkbox.
-
uiEditorType(optional):
string
Type of UI editor to show for the property. Possible values are shortText, longText, richText, number, date or checkbox.
-
variantBasedDisplay(optional):
boolean
Whether a variant based display should be allowed.
-
writable(optional):
boolean
Whether the property is writable.
Nested Schema : editableAttributes
Type:
array
Attributes of this property that can be edited.
Show Source
Example Response (application/json)
[
{
"itemType":"sku",
"hidden":false,
"length":254,
"variantBasedDisplay":false,
"label":"Name",
"type":"shortText",
"required":false,
"searchable":true,
"writable":true,
"internalOnly":false,
"uiEditorType":null,
"default":null,
"listingVariant":false,
"localizable":true,
"textSearchable":true,
"id":"displayName",
"dimension":null,
"editableAttributes":[
"internalOnly",
"default",
"listingVariant",
"hidden",
"variantBasedDisplay",
"textSearchable",
"label",
"dimension",
"required",
"searchable",
"order",
"multiSelect"
],
"order":"-16",
"multiSelect":null
},
{
"itemType":"sku",
"hidden":false,
"length":165,
"variantBasedDisplay":false,
"label":"Id",
"type":"shortText",
"required":false,
"searchable":false,
"writable":false,
"internalOnly":false,
"uiEditorType":null,
"default":"",
"listingVariant":false,
"localizable":false,
"textSearchable":false,
"id":"id",
"dimension":false,
"editableAttributes":[
"internalOnly",
"default",
"listingVariant",
"hidden",
"variantBasedDisplay",
"textSearchable",
"label",
"dimension",
"required",
"searchable",
"order",
"multiSelect"
],
"order":"-8",
"multiSelect":null
},
{
"itemType":"sku",
"hidden":false,
"length":254,
"variantBasedDisplay":false,
"label":"Product Line",
"type":"shortText",
"required":false,
"searchable":false,
"writable":null,
"internalOnly":false,
"uiEditorType":null,
"default":null,
"listingVariant":false,
"localizable":false,
"textSearchable":false,
"id":"productLine",
"dimension":false,
"editableAttributes":[
"internalOnly",
"default",
"listingVariant",
"hidden",
"variantBasedDisplay",
"textSearchable",
"label",
"dimension",
"required",
"searchable",
"order",
"multiSelect"
],
"order":"20",
"multiSelect":null
},
{
"itemType":"sku",
"hidden":false,
"length":254,
"variantBasedDisplay":false,
"label":"Product Family",
"type":"shortText",
"required":false,
"searchable":false,
"writable":null,
"internalOnly":false,
"uiEditorType":null,
"default":null,
"listingVariant":false,
"localizable":false,
"textSearchable":false,
"id":"productFamily",
"dimension":false,
"editableAttributes":[
"internalOnly",
"default",
"listingVariant",
"hidden",
"variantBasedDisplay",
"textSearchable",
"label",
"dimension",
"required",
"searchable",
"order",
"multiSelect"
],
"order":"20",
"multiSelect":null
},
{
"itemType":"sku",
"hidden":false,
"length":254,
"variantBasedDisplay":false,
"label":"Model",
"type":"shortText",
"required":false,
"searchable":false,
"writable":null,
"internalOnly":false,
"uiEditorType":null,
"default":null,
"listingVariant":false,
"localizable":false,
"textSearchable":false,
"id":"model",
"dimension":false,
"editableAttributes":[
"internalOnly",
"default",
"listingVariant",
"hidden",
"variantBasedDisplay",
"textSearchable",
"label",
"dimension",
"required",
"searchable",
"order",
"multiSelect"
],
"order":"20",
"multiSelect":null
},
{
"itemType":"sku",
"hidden":false,
"length":1,
"variantBasedDisplay":false,
"label":"Configurable",
"type":"checkbox",
"required":false,
"searchable":false,
"writable":null,
"internalOnly":false,
"uiEditorType":null,
"default":false,
"listingVariant":false,
"localizable":false,
"textSearchable":false,
"id":"configurable",
"dimension":false,
"editableAttributes":[
"internalOnly",
"default",
"listingVariant",
"hidden",
"variantBasedDisplay",
"textSearchable",
"label",
"dimension",
"required",
"searchable",
"order",
"multiSelect"
],
"order":"20",
"multiSelect":null
}
]
Default Response
The error response
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