updateProductType

put

/ccadmin/v1/productTypes/{id}

Update Product Type. Update an existing product type based on ID.

Request

Supported Media Types
Path Parameters
Query Parameters
Body ()
Root Schema : updateProductType_request
Type: object
Show Source
Example:
{
    "displayName":"New Sample Product Type",
    "id":"sampleProductType"
}
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : updateProductType_response
Type: object
Show Source
Nested Schema : skuProperties
Type: array
List of SKU properties 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 : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Example Response (application/json)
{
    "shopperInputs":[
    ],
    "displayName":"New Sample Product Type",
    "id":"testproducttype",
    "variants":[
    ],
    "specifications":[
    ],
    "skuPropeties":[
    ]
}

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| |------------------|------------------| |20195|Product Type named already exists| |20172|Blank product type id provided| |20194|Invalid product type name provided| |20170|Find Catalog Type Internal Error| |20192|Display name cannot be blank| |20191|Could not find product type| |20190|Update SubType Internal Error|
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