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
Header Parameters
Body ()
Root Schema : reorderSkuProperties_request
Type: object
Show Source
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: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : reorderSkuProperties_response
Type: object
Show Source
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: object
Show Source
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
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top