Restore artifacts of an archived version

Restore Artifacts of an archived version

Request

PUT https://{hostname}:{port}
    /cli/version/restoreArtifacts?{parameters} [archiveZip]
Accept: {contentType}
Content-Type: application/octet-stream
Table 1. Request parameters
Parameter Type Required Description
component string false Name/ID of the Component (Optional, required if version name specified instead of id
version string true Name/ID of the version
archiveZip file true Zip file containing artifacts to be added to version.
Table 2. Header parameters
Parameter Type Required Description
Content-Type application/octet-stream true
Accept
  • application/json
  • application/yaml
true

Example

curl -k -u jsmith:passwd 
   
  "https://deployserver.example.com:8443/cli/version/restoreArtifacts
  ?component=MyComponent&version=1.0" --data-binary @MyComponent_1.0.zip -X PUT

Related CLI command: restoreArtifacts.