Copy As Export Package API

August 23, 2023

The copy feature in Object Migration but as an API.

This is a servlet that takes in a parameter which is, obviously, the name of the package that we want to copy. Creates a new package and copies all objects in the original package. Returns JSON responses for all scenarios.

GET/html/en/default/rest/copyAsExportPackage?packageName=testPackage

  1. Success returns 200 OK
  2. No param returns 400 Bad Request
  3. Empty package name returns 400 Bad Request
  4. Invalid package name returns 400 Bad Request
  5. Any other error returns 500 Internal Server Error