updateProductTypeSpecification

put

/ccadmin/v1/productProperties/{id}

Update Product Type Specification. Update product type specification. **Requires the x-ccasset-language header so translated content can be set for a specific language.**

Request

Supported Media Types
Path Parameters
Header Parameters
Body ()
Root Schema : updateProductTypeSpecification_request
Type: object
Show Source
Example:
{
    "default":"U.K",
    "id":"origin",
    "label":"origin_updated",
    "searchable":true,
    "productTypeId":"MensApparel"
}
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : updateProductTypeSpecification_response
Type: object
Show Source
Nested Schema : shopperInputs
Type: array
List of Shopper Inputs for user-defined product type.
Show Source
Nested Schema : specifications
Type: array
List of specifications for user-defined product type.
Show Source
Nested Schema : variants
Type: array
List of variants for user-defined product type.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : localizedValues
Type: object
Additional Properties Allowed
Show Source
Localized enumerated values map (base -> localized), returned when type=enumerated and there is localization.
Nested Schema : values
Type: array
List of values when the type=enumerated.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : editableAttributes
Type: array
List of editable attributes
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : editableAttributes
Type: array
List of editable attributes
Show Source
Nested Schema : localizedValues
Type: object
Additional Properties Allowed
Show Source
Localized values for variant. Key is option value in default locale, value is option value in specified locale
Nested Schema : values
Type: array
Values for variant.
Show Source
Nested Schema : items
Type: object
Show Source
Example Response (application/json)
{
    "skuProperties":[
    ],
    "shopperInputs":[
    ],
    "displayName":"Camera",
    "count":6,
    "id":"camera",
    "variants":[
        {
            "itemType":"sku-camera",
            "localizedValues":null,
            "hidden":false,
            "values":[
                "Antique Brass",
                "Apricot",
                "Aquamarine"
            ],
            "length":19,
            "variantBasedDisplay":false,
            "label":"color",
            "type":"enumerated",
            "required":false,
            "searchable":false,
            "writable":true,
            "internalOnly":false,
            "uiEditorType":null,
            "default":null,
            "listingVariant":false,
            "propertyType":"variant",
            "localizable":false,
            "textSearchable":false,
            "id":"color",
            "dimension":false,
            "editableAttributes":[
                "internalOnly",
                "default",
                "listingVariant",
                "hidden",
                "variantBasedDisplay",
                "textSearchable",
                "label",
                "dimension",
                "required",
                "searchable",
                "order",
                "multiSelect"
            ],
            "order":null,
            "multiSelect":null
        },
        {
            "itemType":"sku-camera",
            "localizedValues":null,
            "hidden":false,
            "values":[
                "14.1-megapixels",
                "24.3-megapixels",
                "30.8-megapixels"
            ],
            "length":19,
            "variantBasedDisplay":false,
            "label":"resolution",
            "type":"enumerated",
            "required":false,
            "searchable":false,
            "writable":true,
            "internalOnly":false,
            "uiEditorType":null,
            "default":null,
            "listingVariant":false,
            "propertyType":"variant",
            "localizable":false,
            "textSearchable":false,
            "id":"resolution",
            "dimension":false,
            "editableAttributes":[
                "internalOnly",
                "default",
                "listingVariant",
                "hidden",
                "variantBasedDisplay",
                "textSearchable",
                "label",
                "dimension",
                "required",
                "searchable",
                "order",
                "multiSelect"
            ],
            "order":null,
            "multiSelect":null
        }
    ],
    "specifications":[
        {
            "itemType":"camera",
            "hidden":false,
            "length":1000,
            "variantBasedDisplay":false,
            "label":"Storage media",
            "type":"shortText",
            "required":false,
            "searchable":false,
            "writable":true,
            "internalOnly":false,
            "uiEditorType":null,
            "default":"USB",
            "listingVariant":false,
            "localizable":false,
            "textSearchable":false,
            "id":"storageMedia",
            "dimension":false,
            "editableAttributes":[
                "internalOnly",
                "default",
                "listingVariant",
                "hidden",
                "variantBasedDisplay",
                "textSearchable",
                "label",
                "dimension",
                "required",
                "searchable",
                "order",
                "multiSelect"
            ],
            "order":null,
            "multiSelect":false
        },
        {
            "itemType":"camera",
            "hidden":false,
            "length":1000,
            "variantBasedDisplay":false,
            "label":"origin_updated",
            "type":"shortText",
            "required":false,
            "searchable":false,
            "writable":true,
            "internalOnly":false,
            "default":"U.S.A",
            "listingVariant":false,
            "localizable":false,
            "textSearchable":false,
            "id":"origin",
            "dimension":false,
            "editableAttributes":[
                "internalOnly",
                "default",
                "listingVariant",
                "hidden",
                "variantBasedDisplay",
                "textSearchable",
                "label",
                "dimension",
                "required",
                "searchable",
                "order",
                "multiSelect"
            ],
            "order":null,
            "multiSelect":false
        }
    ]
}

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| |------------------|------------------| |20110|Attempted to update property data without providing new property data| |20111|Cannot update the type of existing property {0}. Try to delete the property and recreate it.| |20112|Cannot set property label to a blank value| |20114|Cannot update the custom property {0}.{1} with a default value that is not one of the enumerated values.| |20116|The custom property {0}.{1} uses an obsolete default value that is not one of the enumerated values.| |26074|Active property cannot be set to Internal Only.| |20017|Attempt to set invalid property: {0}.| |20127,20128|Localized properties cannot be set to required or have a default value|
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