updateItemType

put

/ccadmin/v1/itemTypes/{id}

Update an existing item type based on ID. Supported item types:
  • commerceItem
  • organization
  • promotion
  • gift-list
  • gift-item
  • organizationRequest
  • profileRequest
  • userSiteProperties
  • profileAgentComment
  • orderAgentComment
  • loyaltyPrograms
  • mailing
  • contactInfo
  • creditCard
  • tokenizedCreditCard
  • hardgoodShippingGroup
  • electronicShippingGroup
  • inStorePickupShippingGroup
  • invoiceRequest
  • onlinePaymentGroup
  • physicalGiftCard
  • customCurrencyPaymentGroup
  • quoteInfo
  • returnComment
  • returnItem
  • inStoreTakeWithShippingGroup
  • category
  • product
  • sku
  • Product sub-types
  • Sku sub-types
  • appeasement
  • appeasementComment
  • appeasementRefund
  • externalAppeasementRefund
  • creditCardAppeasementRefund
  • storeCreditAppeasementRefund
  • tokenizedCreditCardAppeasementRefund
  • onlinePaymentGroupAppeasementRefund
  • physicalGiftCardAppeasementRefund
  • customCurrencyAppeasementRefund

    Request

    Supported Media Types
    Path Parameters
    Query Parameters
    • If true, allow the creation of custom property names that do not contain an underscore('_').
    • Set to true to delete all data associated with any removed item type property. This parameter is only supported by product and sku types and sub-types.
    • Parent type of the item type. Only supported for product and sku types and sub-types. For product item type, its value should be 'product' and for sku item type, it should be 'sku'. Default value is 'product'.
    Body ()
    Root Schema : updateItemType_request
    Type: object
    Show Source
    Example:
    {
        "displayName":"TestItemType1",
        "count":0,
        "id":"TestItemType1",
        "variants":[
        ],
        "specifications":[
            {
                "validationPattern":null,
                "itemType":"TestItemType1",
                "hidden":false,
                "length":1000,
                "variantBasedDisplay":false,
                "label":"testProperty1",
                "required":false,
                "searchable":false,
                "writable":true,
                "internalOnly":false,
                "default":null,
                "listingVariant":false,
                "localizable":false,
                "textSearchable":false,
                "id":"testProperty1",
                "dimension":false,
                "multiSelect":false
            }
        ]
    }
    Nested Schema : specifications
    Type: array
    Array of specifications for this item type.
    Show Source
    Nested Schema : items
    Type: object
    Show Source
    Back to Top

    Response

    Supported Media Types

    200 Response

    Following model is returned when operation succeeds.
    Body ()
    Root Schema : updateItemType_response
    Type: object
    Show Source
    Nested Schema : propertiesOrder
    Type: array
    List of properties in ascending order. This is for Item Types.
    Show Source
    Nested Schema : specifications
    Type: array
    List of specifications for user-defined item 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 : 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)
    {
        "displayName":"TestItemType1",
        "links":[
            {
                "rel":"self",
                "href":"http://localhost:9080/ccadminui/v1/itemTypes/TestItemType1"
            }
        ],
        "id":"TestItemType1",
        "specifications":[
            {
                "validationPattern":null,
                "itemType":"TestItemType1",
                "hidden":false,
                "length":1000,
                "variantBasedDisplay":false,
                "label":"testProperty1",
                "type":"shortText",
                "required":false,
                "searchable":false,
                "writable":true,
                "internalOnly":false,
                "default":null,
                "listingVariant":false,
                "localizable":false,
                "textSearchable":false,
                "id":"testProperty1",
                "dimension":false,
                "editableAttributes":[
                    "dimension",
                    "multiSelect",
                    "textSearchable",
                    "default",
                    "internalOnly",
                    "order",
                    "listingVariant",
                    "hidden",
                    "label",
                    "required",
                    "variantBasedDisplay",
                    "searchable"
                ],
                "multiSelect":false,
                "order":null
            }
        ]
    }

    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 item 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 item 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