Version a Migration Package
post
/rest/v19/migrationPackages/{identifier}/actions/newVersion
This endpoint is used to version an existing package. The new version copies the properties and all contents of the original version.
Request
Path Parameters
-
identifier(required): string
Identifier of the existing migration package to create a migration package from.
Response
Supported Media Types
- application/json
Default Response
New version package information
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 version an existing 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 "Accept: application/json" https://sitename.oracle.com/rest/v19/migrationPackages/migrationPackage_v10/actions/newVersion
Response Body Sample
{
"name": "Migration Package",
"identifier": "migrationPackage_v11",
"version": 11,
"dateAdded": "2023-06-29T05:42:26.000Z",
"dateModified": "2023-06-29T05:42:26.000Z",
"dependencies": {},
"links": [{
"rel": "self",
"href": "http://sitename.oracle.com/rest/v19/migrationPackages/migrationPackage_v11"
}, {
"rel": "child",
"href": "http://sitename.oracle.com/rest/v19/migrationPackages/migrationPackage_v11/contents"
}
],
}