Archive the given versions of a component

Request

PUT https://{hostname}:{port}
    /cli/version/archiveVersion?{parameters}
Accept: application/json
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 Archive path. An absolute path which overrides the System's archive path
Table 2. Header parameters
Parameter Type Required Description
Accept application/json true

Example

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

Related CLI command: archiveVersion.