createSkuProperty

post

/ccadmin/v1/skuProperties

Create a new dynamic property on the SKU type. **Requires the x-ccasset-language header so translated content can be set for a specific language.**

Request

Supported Media Types
Query Parameters
Header Parameters
Body ()
Root Schema : createSkuProperty_request
Type: object
Show Source
Example:
{
    "uiEditorType":"shortText",
    "default":"defaultValue",
    "localizable":false,
    "id":"upccode",
    "label":"UpcCode",
    "type":"shortText",
    "searchable":false,
    "productTypeId":"sampleProductType"
}
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : createSkuProperty_response
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-sampleProductType",
        "hidden":false,
        "length":254,
        "variantBasedDisplay":false,
        "label":"UpcCode",
        "type":"shortText",
        "required":false,
        "searchable":false,
        "writable":true,
        "internalOnly":false,
        "default":"defaultValue",
        "listingVariant":false,
        "propertyType":"sku-base",
        "localizable":false,
        "textSearchable":false,
        "id":"upccode",
        "dimension":false,
        "editableAttributes":[
            "dimension",
            "multiSelect",
            "textSearchable",
            "default",
            "internalOnly",
            "order",
            "listingVariant",
            "hidden",
            "label",
            "required",
            "variantBasedDisplay",
            "searchable"
        ],
        "multiSelect":false
    }
]

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