Import Package

Import Package

Imports a package. The package binary content should be available as multi-part content (see RFC-2387 for details). Details of working with multi-part resources depend on the used client's HTTP/REST library. For example, in Spring it will look like:

Sample client code:
-------------------
String url = "https://localhost:8281/vco/api/packages/";
MultiValueMap parts = new LinkedMultiValueMap ();
Resource r = new FileSystemResource("D:/path/to/some.package");
parts.put("file", Arrays.asList(r));
new RestTemplate().postForLocation(url, parts);
-------------------

Request
URI
POST
https://{api_host}/vco/api/packages
COPY
Query Parameters
boolean
overwrite
Optional

overwrite

boolean
importConfigurationAttributeValues
Optional

importConfigurationAttributeValues

string
tagImportMode
Optional

tagImportMode

Possible values are : DoNotImport, ImportAndOverwriteExistingValue, ImportButPreserveExistingValue,

Request Body
importAction of mimetype application/x-www-form-urlencoded
Optional
Responses
201

Package successfully imported

Operation doesn't return any data structure

401

User is not authorized

Operation doesn't return any data structure

409

One or more package elements have an older version.

Operation doesn't return any data structure