validateAssets

post

/ccadmin/v1/asset/validate

Validate Assets. Validates catalog or inventory items.

Request

Supported Media Types
Body ()
Root Schema : validateAssets_request
Type: object
Show Source
  • The flag that indicates whether the validation result should be included in response.By default, the result won't be included.
  • The token associated with a previous upload operation, for which the validation operation will take place.
Example:
{
    "token":"QEnltim5M5VNaygUgjomyR0hzV4_10037"
}
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : validateAssets_response
Type: object
Show Source
Nested Schema : validationResults
Type: array
Partial list of validation results.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : valueDictionary
Type: object
Additional Properties Allowed
Show Source
Map of item property values that will be set on import. The key is the property name, and the value is the property value. The property value will either be a string or a key value pair in the case of a repository item reference.
Example Response (application/json)
{
    "total":1,
    "newCount":1,
    "validationResults":[
        {
            "valueDictionary":{
                "longDescription":"null",
                "salePrice":"null",
                "displayName":"The Good, the Bad, and the Ugly",
                "orderLimit":"10",
                "length":"100.0",
                "weight":"10000.0",
                "active":true,
                "description":"A really great movie that you should not miss",
                "type":"null",
                "taxCode":"null",
                "CountryOfOrigen":"US",
                "arrivalDate":"null",
                "width":"1000.0",
                "shippingSurcharge":"15.00",
                "brand":"Test2",
                "listPrice":"14.99",
                "height":"1.0"
            },
            "allAssetPropertyNames":[
                "ID",
                "displayName",
                "type",
                "description",
                "brand",
                "longDescription",
                "active",
                "listPrice",
                "salePrice",
                "shippingSurcharge",
                "arrivalDate",
                "height",
                "length",
                "width",
                "weight",
                "taxCode",
                "orderLimit",
                "images",
                "altText",
                "CountryOfOrigen"
            ],
            "modified":false,
            "isNew":true,
            "type":"product",
            "validateResult":"SUCCESS"
        }
    ],
    "modifiedCount":0,
    "description":"Sample response of validate operation for catalog items",
    "warningCount":0,
    "unchangedCount":0,
    "errorCount":0,
    "token":"kWgU9foxZ3yfb1UCOAgeZgfresc_10038"
}

Default Response

The error response
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