createProductType

post

/ccadmin/v1/productTypes

Create Product Type. Create a new user-defined product type based on ID.

Request

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

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : createProductType_response
Type: object
Show Source
Nested Schema : shopperInputs
Type: array
List of Shopper Inputs for user-defined product type.
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
Nested Schema : items
Type: object
Show Source
Example Response (application/json)
[
    {
        "skuProperties":[
        ],
        "shopperInputs":[
        ],
        "displayName":"Sample Product",
        "count":0,
        "id":"sampleProductType",
        "variants":[
        ],
        "specifications":[
        ]
    }
]

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| |------------------|------------------| |20123|No item descriptor name supplied when adding dynamic property| |20122|No property type supplied when adding dynamic property| |20177|Invalid product type name provided| |20176|Cannot create duplicate product type| |20120|No property name supplied when adding dynamic property| |20174|Display name cannot be blank| |20634|Attempt to create a variant option with invalid type, Valid values are: enumerated.| |33013|Get ItemDescriptor Error| |20173|No display name provided| |20195|Product Type named already exists| |20172|Blank product type id provided| |20171|No product type id provided| |20170|Find Catalog 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