Upload Zip File for a Migration Package
post
                    /rest/v19/migrationPackages/actions/uploadPackage
This endpoint uploads a  ZIP file to the server.
                
                Request
Supported Media Types
                - multipart/form-data
Form Parameters
                - 
                        file(required): file
                        
                        Migration Package zip file.
Response
Supported Media Types
                - application/json
Default Response
Upload package response
                
                
                    Root Schema : migrationPackage-uploadPackageResponse
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Show Source
        object- 
            crossProcessMigrationEnabled: 
            boolean
            Title:crossProcessMigrationEnabledUploaded package is eligible for cross process migration
- 
            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
- 
            links: 
            array  Migration Package Links
            
            Title:Migration Package LinksLinks for the Migration Package
- 
            name: 
            string
            Title:nameName of the Migration Package
- 
            packageTransformationTask: 
            array  Package transforamtion info
            
            Title:Package transforamtion infoPackage Transformation taskId and status link (This field applicable only in upload package response)
- 
            siteVersion: 
            string
            Title:siteVersionSite version
- 
            uploadedPackageIdentifer: 
            string
            Title:uploadedPackageIdentiferServer location of uploaded zip
- 
            uploadStatus: 
            string
            Title:uploadStatusPackage transformation status
- 
            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 : Package transforamtion info
    
      
      Type: 
    
    
    
    arrayTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Package transforamtion infoPackage Transformation taskId and status link (This field applicable only in upload package response)
    
    
    
    
    
        Show Source
        - 
            Array of: 
                object  Task details
            
            Title:Task detailsTask details
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
Nested Schema : Task details
    
      Type: 
      
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Task detailsTask details
    
    
    
    
    Show Source
        - 
            links: 
            array  Links
            
            Title:LinksLinks to the related objects.
- 
            taskId: 
            integer
            Title:Task IdThe status log task Id.
Nested Schema : Links
    
      
      Type: 
    
    
    
    arrayTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    LinksLinks to the related objects.
    
    
    
    
    
        Show Source
        - 
            Array of: 
                object  Reference Links
            
            Title:Reference LinksReference links for the Parent, Self, Children and Related as applicable
Nested Schema : Reference Links
    
      Type: 
      
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Reference LinksReference links for the Parent, Self, Children and Related as applicable
    
    
    
    
    Show Source
        - 
            href: 
            string
            Title:hrefURL to the related object
- 
            rel: 
            string
            Title:LinkLink relationship to the current object
Examples
The following example shows how to upload a migration package ZIP file to the server 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/actions/uploadPackage
Response Body Sample
{
  "name": "MigrationPackage",
  "identifier": "migrationPackage_v11",
  "version": 11,
  "dateModified": "2023-05-27T02:29:48.000Z",
  "uploadedPackageIdentifer": "MigrationPackage_111665383246705",
  "siteVersion": "22.3.0",
  "validCPM": false,
  "dependencies": {},
  "links": [{
      "rel": "self",
      "href": "http://sitename.oracle.com/rest/v19/migrationPackages/TestPackage_111665383246705?retrieveFromPkgZip=true"
    }, {
      "rel": "child",
      "href": "http://sitename.oracle.com/rest/v19/migrationPackages/TestPackage_111665383246705/contents?retrieveFromPkgZip=true"
    }
  ]
}
                  Sample curl -H "Authorization: Bearer <token>" Command
curl -H "Authorization: Bearer <token>" --request POST 'https://sitename.oracle.com/rest/v19/migrationPackages/actions/uploadPackage' \ \ \ --form 'file=@/D:/MigrationPackage_2.zip