Create an Import Job

This topic provides the information that is required to create an import job of private packages in the Content Network through an API.

Attributes in Import Job Request Payload

Import using packageID
Attribute Type Mandatory/Optional Description
wavePackage Long Mandatory Specifies the waveItemId/wavePackageId of the package (available in Content Network) to be imported. wavePackage concept is used in Content Network for versioning purpose, different version of a package (import unit) according to a specific orca version can exist. These are called wavePackage/waveItemid. If you are not sure about about the wavepackageId, then use '0'. It will fetch the suitable wavePackage corresponding to the tenant version.
type String Mandatory Specifies the type of the Job. The value should be IMPORT for creating an Content Network Import Job.
privatePackage Long Mandatory Specifies the privateItemId/privatePackageId of the package (available in Content Network) to be imported.
originLandscape String Optional Specifies the landscape of the destination.
allObjects Boolean Mandatory Specifies whether all the objects available in the package to be exported or not. Pass always true unless you have the list of objects you want to import.
xsParameters String Optional

It's a JSON structure, however, the values are passed as a string. The definition of the options within are as below.

updateExisting: Specifies whether to overwrite objects or data. The default value is true.

importDataOnly: Specifies whether to import and overwrite data of existing objects without making changes to the sturcture of your models. The default value is false.

dropDependent: Specifies whether to drop the dependent objects and import them. The default value is false.

The default value for the xsParameters is -

"{\"updateExisting\" : true, \"importDataOnly\": false, \"dropDependent\": false}".

Response

When the POST method to create an import job is successful, then the system returns the job ID as the response. You can go to Status Codes to learn about the three-digit code in the response.