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:
string
Required:true
The 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:
integer
Total number of import errors for modified assets. - modifiedSuccessCount
-
Type:
integer
Total number of modified assets. - newErrorCount
-
Type:
integer
Total number of import errors for new assets. - newSuccessCount
-
Type:
integer
Total number of new assets. - total
-
Type:
integer
Total number of imported assets. - unchangedCount
-
Type:
integer
Total 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:
string
An optional non-localized message containing technical information for developers - errorCode
-
Type:
string
The numerical code identifying the error - errors
-
Type:
array
errorsAdditional Properties Allowed:An optional list of errors if multiple errors were encountered - message
-
Type:
string
The localized message describing the error - moreInfo
-
Type:
string
An optional non-localized message with more information - o:errorPath
-
Type:
string
An optional machine readable description of where the error occurred - status
-
Type:
string
The HTTP status code - type
-
Type:
string
The URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object
- devMessage
-
Type:
string
An optional non-localized message containing technical information for developers - errorCode
-
Type:
string
The numerical code identifying the error - message
-
Type:
string
The localized message describing the error - moreInfo
-
Type:
string
An optional non-localized message with more information - o:errorPath
-
Type:
string
An optional machine readable description of where the error occurred - status
-
Type:
string
The 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 }