Import package

Import package

Import content of a zip package. The zip file will be validated and import will be performed based on the 'dependencies' specified in the metadata file. The result of the import operation will be captured in OperationInfo object. At this point, we don't support any form of rollback strategies. A failed import may potentially leave the system in an inconsistent state. Hence, its highly recommend to run a precheck/dry-run before the import to validate the package. See HTTP POST /api/packages/validate for more details. This will help catch most of the errors upfront. Although the API looks similar to create package API but differs in the 'Content-Type' header where it expects 'multipart/form-data'.

Request
URI
POST
https://{api_host}/content-management-service/api/packages
COPY
Query Parameters
string
resolutionMode
Optional

The resolution mode to be used when the same entity is found to exist in the system

Possible values are : SKIP, OVERWRITE,

Request Body
Responses
200

Upload raw data successful

Returns OperationInfo of type(s) */*
{
    "operationStatus": "string",
    "operationResults": [
        {
            "operationErrors": [
                {
                    "errorMessage": "string",
                    "errorCode": 0
                }
            ],
            "operationStatus": "string",
            "contentId": "string",
            "contentTypeId": "string",
            "messages": [
                "string"
            ],
            "contentName": "string"
        }
    ],
    "operationType": "string"
}
string
operationStatus
Optional

operationStatus

Possible values are : SUCCESS, FAILED, WARNING,
operationResults
Optional

operationResults

string
operationType
Required

operationType

Possible values are : IMPORT, EXPORT, IMPORT_DRY_RUN, EXPORT_DRY_RUN,