Copy a Migration Package
post
/rest/v19/migrationPackages/{identifier}/actions/copy
This endpoint creates a copy of a migration package.
Request
Supported Media Types
- application/json
Path Parameters
-
identifier(required): string
The unique identifier of the existing package the user wants to create a package from.
Root Schema : Migration Package Copy Request
Type:
object
Title:
Migration Package Copy Request
Payload for create copy of the migration package.
Show Source
-
name:
string
Title:
Migration Package Name
Name of the package.
Response
Supported Media Types
- application/json
Default Response
Copy package response.
Root Schema : migrationPackage-reponse
Type:
Show Source
object
-
dateAdded:
string
Title:
dateAdded
Date Added of the Migration Package -
dateModified:
string
Title:
dateModified
Date Modified of the Migration Package -
dateRelease:
string
Title:
dateRelease
Date Release of the Migration Package -
dependencies:
object Migration Package Dependencies
Title:
Migration Package Dependencies
Dependent Packages for the Migration Package -
description:
string
Title:
description
Description of the Migration Package -
identifier:
string
Title:
identifier
Unique Identifier for the Migration Package -
isImported:
boolean
Title:
isImported
The package is created in the local or imported package -
lastModifiedUser:
string
Title:
lastModifiedUser
The last modified user of Package -
links:
array Migration Package Links
Title:
Migration Package Links
Links for the Migration Package -
name:
string
Title:
name
Name of the Migration Package -
owner:
string
Title:
owner
The user name package was created. -
sourceSiteUrl:
string
Title:
sourceSiteUrl
The site name of the package was created -
version:
integer
Title:
version
Version of the Migration Package
Nested Schema : Migration Package Dependencies
Type:
object
Title:
Migration Package Dependencies
Dependent Packages for the Migration Package
Show Source
-
items:
array Migration Package Dependencies list
Title:
Migration Package Dependencies list
List of Dependencies for Migration Package
Nested Schema : Migration Package Links
Type:
array
Title:
Migration Package Links
Links for the Migration Package
Show Source
-
Array of:
object referenceLinks
Reference links for the Parent, Self, Children and Related as applicable
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:
Show Source
object
-
name(required):
string
Title:
name
Name of the Migration Package -
version(required):
integer
Title:
version
Version of the Migration Package
Nested Schema : referenceLinks
Type:
object
Reference links for the Parent, Self, Children and Related as applicable
Show Source
-
href:
string
Title:
URL to the related object
URL to the related object -
rel:
string
Title:
Link Relationship to the current object
Link Relationship to the current object
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 }