Copy a Migration Package

post

/rest/v19/migrationPackages/{identifier}/actions/copy

This endpoint creates a copy of a migration package.

Request

Supported Media Types
Path Parameters
Body ()
Root Schema : Migration Package Copy Request
Type: object
Title: Migration Package Copy Request
Payload for create copy of the migration package.
Show Source
  • Title: Migration Package Name
    Name of the package.
Back to Top

Response

Supported Media Types

Default Response

Copy package response.
Body ()
Root Schema : migrationPackage-reponse
Type: object
Show Source
Nested Schema : Migration Package Dependencies
Type: object
Title: Migration Package Dependencies
Dependent Packages for the Migration Package
Show Source
Nested Schema : Migration Package Dependencies list
Type: array
Title: Migration Package Dependencies list
List of Dependencies for Migration Package
Show Source
Nested Schema : migrationPackageDependency
Type: object
Show Source
Back to Top

Examples

The following example shows how to create a copy of a migration package by submitting a POST request to the REST resource using cURL. For more information about cURL, see Use cURL.

curl -X POST -H "Authorization: Bearer <token>" -H "Content-type: application/json" -H "Accept: application/json"
https://sitename.oracle.com/rest/v19/migrationPackages/testPackage/actions/copy

Request Body Sample

{
  "name": "Test Package"
}

Response Body Sample

{
  "name": "Test Package",
  "identifier": "testPackage_v1",
  "version": 1,
  "dateAdded": "2025-02-17T09:21:26.000Z",
  "dateModified": "2025-02-17T09:21:26.000Z",
  "owner": "superuser",
  "lastModifiedUser": "adminuser1",
  "sourceSiteUrl": "https://sitename.oracle.com",
  "dependencies": {},
  "links": [{
      "rel": "self",
      "href": "https://sitename.oracle.com/rest/v19/migrationPackages/testPackage_v1"
    }, {
      "rel": "child",
      "href": "https://sitename.oracle.com/rest/v19/migrationPackages/testPackage_v1/contents",
      "name": "contents"
    }
  ],
  "isImported": false
}
Back to Top