uploadAssets

post

/ccadmin/v1/asset/upload

Upload Assets. Upload a csv file containing catalog or inventory items.

Request

Supported Media Types
Body ()
Root Schema : uploadAssets_request
Type: object
Show Source
Example:
{
    "filename":"variants1.xls",
    "file":"0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAOwADAP7/CQAGAAAAAAAAAAAAAAABAAAAJAAAAAAAAAAAEAAAIgAAAAEAAAD+////AAAAAAAAAAD////////////////////////////////////////////////////////////////////////////////////////////////BFAG4AdAByAHkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWAAUA////////////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/v///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD+////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///////////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP7///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////////////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/v///wAAAAAAAAAACQgQAAAGBQC7DcwHAAAAAAYAAADhAAIAsATBAAIAAADiAAAAXABwAAQAAENhbGMgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBCAAIA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AAQAAQABAMEBCADBAQAAVI0BAOsAWgAPAADwUgAAAAAABvAYAAAAAAQAAAIAAAABAAAAAQAAAAEAAAABAAAAMwAL8BIAAAC/AAgACACBAQkAAAjAAUAAAAhAAB7xEAAAAA0AAAgMAAAIFwAACPcAABD8ALoACwAAAAsAAAAoAAAvYXRnL2NvbW1lcmNlL2NhdGFsb2cvUHJvZHVjdENhdGFsb2c6c2t1AgAASUQLAABkaXNwbGF5TmFtZQoAAGxhcmdlSW1hZ2UOAAB0aHVtYm5haWxJbWFnZQsAACBzbWFsbEltYWdlAwAATkVXCAAAc29tZXNrdTAMAABpbWdjb3JhbGNvdmURAABpbWdjb3JhbGNvdmVUaHVtYhEAAGltZ2NvcmF"
}
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : uploadAssets_response
Type: object
Show Source
  • Message string describing error if there was an error during file format or file header validation.
  • Status flag indicating result of file format and file header validation.
  • The unique token for this upload/validation/import operation sequence. Use this token for any subsequent validation, validation status, import or import status operation.
Example Response (application/json)
{
    "status":"SUCCESS",
    "token":"gWHikhGAm2997147nvFUQZpbgBw_10000"
}

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| |------------------|------------------| |13015|Please select a file for import.| |13016|Bad file extension.| |13017|The first column must be labeled 'ID'.| |13018|The first column must be labeled 'catalogRefId'.| |13019|Only the first column can be labeled 'ID'.| |13020|Only the first column can be labeled 'catalogRefId'.| |13021|The itemized format only allows one property column in addition to the 'ID' column.| |13022|The following property names were not recognized: {0}.| |13023|The following properties are not editable: {0}.| |13024|The file is missing the item type and repository path information in the header.| |13025|The item type and repository path cell could not be read.| |13026|The repository path {0} could not be found.| |13027|Cannot import to the repository {0}.| |13028|The type {0} could not be found.| |13029|The type {0} is not editable.| |13030|The date format {0} is not a valid format.| |13031|The timestamp format {0} is not a valid format.| |13032|The date format is missing.| |13033|The timestamp format is missing.| |13034|There were errors reading the file.| |13035|Locale key is missing.| |13036|The language does not match any supported language for the site. Please select another file and try again.| |13038|Invalid catalog id provided.| |13039|It is not allowed to import with version 1 (legacy) catalog.| |13041|It is not allowed to import with filtered view (version 3) catalog.|
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