importAssets
post
/ccadmin/v1/asset/import
Import Assets. Import catalog or inventory items that have been uploaded and validated.
Request
Supported Media Types
- application/json
Body Parameter
Root Schema : importAssets_request
{
"token":"QEnltim5M5VNaygUgjomyR0hzV4_10037"
}
- token
-
Type:
stringRequired:trueThe token associated with a previous upload/validation operation, for which the import operation will take place.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : importAssets_response
- modifiedErrorCount
-
Type:
integerTotal number of import errors for modified assets. - modifiedSuccessCount
-
Type:
integerTotal number of modified assets. - newErrorCount
-
Type:
integerTotal number of import errors for new assets. - newSuccessCount
-
Type:
integerTotal number of new assets. - total
-
Type:
integerTotal number of imported assets. - unchangedCount
-
Type:
integerTotal number of imported assets that resulted in no change.
Example application/json
{
"modifiedErrorCount":500,
"total":5000,
"newErrorCount":500,
"modifiedSuccessCount":1500,
"unchangedCount":1000,
"newSuccessCount":1500
}
Default Response
The error response
Body
Root Schema : errorModel
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - errors
-
Type:
arrayerrorsAdditional Properties Allowed:An optional list of errors if multiple errors were encountered - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code - type
-
Type:
stringThe URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code
Examples
Sample Request:
{"token": "QEnltim5M5VNaygUgjomyR0hzV4_10037"}
Sample Response Payload returned by endpoint:
{
"modifiedErrorCount": 500,
"total": 5000,
"newErrorCount": 500,
"modifiedSuccessCount": 1500,
"unchangedCount": 1000,
"newSuccessCount": 1500
}