Archive the given versions of a component

Request

PUT https://{hostname}:{port}
    /cli/version/archiveVersion?{parameters}
Accept: {contentType}
Table 1. Request parameters
Parameter Type Required Description
component string true Name or ID of the component
version string true Name or ID of the version(s) to be archived. This option can be repeated to archive multiple versions.
path string false Deprecated. Archive path. An absolute path which overrides the System's archive path. Must be enabled on the server.
Table 2. Header parameters
Parameter Type Required Description
Accept
  • application/json
  • application/yaml
true

Example

curl -k -u jsmith:passwd 
   
  "https://deployserver.example.com:8443/cli/version/archiveVersion
  ?component=MyComponent&version=1.0&version=1.2&version=1.3" -X PUT

Related CLI command: archiveVersion.