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:
objectTitle:
Migration Package Copy RequestPayload for create copy of the migration package.
Show Source
-
name:
string
Title:
Migration Package NameName 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:
dateAddedDate Added of the Migration Package -
dateModified:
string
Title:
dateModifiedDate Modified of the Migration Package -
dateRelease:
string
Title:
dateReleaseDate Release of the Migration Package -
dependencies:
object Migration Package Dependencies
Title:
Migration Package DependenciesDependent Packages for the Migration Package -
description:
string
Title:
descriptionDescription of the Migration Package -
identifier:
string
Title:
identifierUnique Identifier for the Migration Package -
isImported:
boolean
Title:
isImportedThe package is created in the local or imported package -
lastModifiedUser:
string
Title:
lastModifiedUserThe last modified user of Package -
links:
array Migration Package Links
Title:
Migration Package LinksLinks for the Migration Package -
name:
string
Title:
nameName of the Migration Package -
owner:
string
Title:
ownerThe user name package was created. -
sourceSiteUrl:
string
Title:
sourceSiteUrlThe site name of the package was created -
version:
integer
Title:
versionVersion of the Migration Package
Nested Schema : Migration Package Dependencies
Type:
objectTitle:
Migration Package DependenciesDependent Packages for the Migration Package
Show Source
-
items:
array Migration Package Dependencies list
Title:
Migration Package Dependencies listList of Dependencies for Migration Package
Nested Schema : Migration Package Links
Type:
arrayTitle:
Migration Package LinksLinks 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:
arrayTitle:
Migration Package Dependencies listList of Dependencies for Migration Package
Show Source
Nested Schema : migrationPackageDependency
Type:
Show Source
object-
name(required):
string
Title:
nameName of the Migration Package -
version(required):
integer
Title:
versionVersion of the Migration Package
Nested Schema : referenceLinks
Type:
objectReference links for the Parent, Self, Children and Related as applicable
Show Source
-
href:
string
Title:
URL to the related objectURL to the related object -
rel:
string
Title:
Link Relationship to the current objectLink 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
}