validateAssets

post

/ccadmin/v1/asset/validate

Validate Assets. Validates catalog or inventory items.

Request

Supported Media Types
  • application/json
Body Parameter
Root Schema : validateAssets_request

Response

Supported Media Types
  • application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : validateAssets_response
Nested Schema : validationResults
Type: array
Partial list of validation results.
Nested Schema : items
Type: object
Nested Schema : valueDictionary
Type: object
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 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
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Nested Schema : items
Type: object

Examples

Sample Request:

{"token": "QEnltim5M5VNaygUgjomyR0hzV4_10037"}

Sample Response Payload returned by endpoint:

{
  "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"
}