updateProductType
put
/ccadmin/v1/productTypes/{id}
Update Product Type. Update an existing product type based on ID.
Request
Supported Media Types
- application/json
Path Parameters
-
id: string
ID of product type.
Query Parameters
-
allowNonUnderscoreNames(optional): boolean
If true, allow the creation of custom property names that do not contain an underscore('_').
Root Schema : updateProductType_request
Type:
Show Source
object
-
displayName:
string
Display name of product type.
-
id(optional):
string
ID of existing product type.
Example:
{
"displayName":"New Sample Product Type",
"id":"sampleProductType"
}
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : updateProductType_response
Type:
Show Source
object
-
displayName(optional):
string
Display name of product type.
-
id(optional):
string
ID of the product type.
-
skuProperties(optional):
array skuProperties
List of SKU properties for user-defined product type.
-
specifications(optional):
array specifications
List of specifications for user-defined product type.
-
variants(optional):
array variants
List of variants for user-defined product type.
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
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|
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