Migrate Selected Migration Resources or Migration Package from Source Site

post

/rest/v19/migrationResources/actions/migrate

This endpoint migrates the selected migration resources or migration package from a source site.

Request

Supported Media Types
Header Parameters
Body ()
Migrate content request.
Root Schema : Site Migrate Request
Type: object
Title: Site Migrate Request
Migrate request
Show Source
Nested Schema : Migration Content
Type: object
Title: Migration Content
Show Source
Nested Schema : Migration Resource Content Dependencies
Type: object
Title: Migration Resource Content Dependencies
Show Source
Nested Schema : Exclude Content
Type: object
Title: Exclude Content
Show Source
Nested Schema : Migration Content List
Type: array
Title: Migration Content List
List of Migration Contents
Show Source
Nested Schema : migrationPackage-requestChildren
Type: object
Content for the Create, Update and Update Contents Migration Package
Show Source
Nested Schema : List of children contents
Type: array
Title: List of children contents
List of children contents
Show Source
Nested Schema : migratePackage-subChildren
Type: object
Migration Resource children contents
Show Source
Nested Schema : List of children contents
Type: array
Title: List of children contents
List of children contents
Show Source
Nested Schema : migrationPackage-lowLevelUpdateRequest
Type: object
Show Source
Nested Schema : List of children contents
Type: array
Title: List of children contents
List of children contents
Show Source
Nested Schema : migrationPackage-lowLevelUpdateRequest-children
Type: object
Show Source
Nested Schema : List of Migration Resource Dependencies
Type: array
Title: List of Migration Resource Dependencies
List of migration resource content dependencies
Show Source
Nested Schema : dependency-Response
Type: object
Show Source
Nested Schema : List of Dependent Resources
Type: array
Title: List of Dependent Resources
List of dependent resources
Show Source
Nested Schema : dependencyResponse-children
Type: object
Dependency response
Show Source
Nested Schema : List of Resources
Type: array
Title: List of Resources
List of resources
Show Source
Nested Schema : dependencyResponse-subChildren
Type: object
Migration resource
Show Source
Nested Schema : List of Migration Resource Dependencies
Type: array
Title: List of Migration Resource Dependencies
List of migration resource dependencies
Show Source
Nested Schema : dependencyDetails
Type: object
Migration resource dependency
Show Source
Nested Schema : List of Migration Resource Content
Type: array
Title: List of Migration Resource Content
List of migration resource contents to be excluded
Show Source
Back to Top

Response

Supported Media Types

Default Response

Migrate task response
Body ()
Root Schema : Task details
Type: object
Title: Task details
Task details
Show Source
Back to Top

Examples

The following examples show how to migrate the selected migration resources or a migration package from a source site by submitting a POST request to the REST resource using cURL. For more information about cURL, see Use cURL.

Example of Migrating Resources from a Source Site

curl - X GET -H "Authorization: Bearer <token>" - H "Content-type: application/json" 
https://sitename.oracle.com/rest/v19/migrationResources/actions/migrate

Sample Request Body

{
  "contents": {
    "items": [{
        "category": "COMMERCE",
        "children": [{
            "variableName": "test",
            "granular": true,
            "children": [{
                "variableName": "main",
                "resourceType": "document",
                "checkedAllChildren": false,
                "children": [{
                    "name": "eSignature Action Set",
                    "variableName": "_action_esig_set",
                    "resourceType": "action_set",
                    "lastModified": "06/15/2023 3:27 AM"
                  }
                ]
              }
            ]
          }
        ]
      }
    ]
  },

Sample Response Body

{
  "taskId": 3023163957,
  "links": [{
      "rel": "related",
      "href": "http://sitename.oracle.com/rest/v19/tasks/3023163957"
    }
  ]
}

Example of a Migrating a Package from a Source Site

curl - X GET -H "Authorization: Bearer <token>" - H "Content-type: application/json" https://sitename.oracle.com/rest/v19/migrationResources/actions/migrate

Sample Request Body

{
  "packageIdentifier": "packageName3_v1",
  "sendNotificationTo": "lisajones@yourcompany.com",
  "includeSnapshot": false,
  "excludeContents": {
    "items": [{
        "category": "COMMERCE",
        "children": [{
            "variableName": "test",
            "granular": true,
            "children": [{
                "variableName": "main",
                "resourceType": "document",
                "checkedAllChildren": false,
                "children": [{
                    "name": "eSignature Action Set",
                    "variableName": "_action_esig_set",
                    "resourceType": "action_set",
                    "lastModified": "06/15/2023 3:27 AM"
                  }
                ]
              }
            ]
          }
        ]
      }
    ]
  },
  "dependencies": {
    "items": [{
        "name": "Commerce",
        "category": "COMMERCE",
        "children": [{
            "name": "Test",
            "variableName": "test",
            "resourceType": "process",
            "granular": true,
            "dependencies": [{
                "name": "HTML Field 1",
                "category": "COMMERCE",
                "variableName": "hTMLField1",
                "resourceType": "attribute",
                "type": "LOW_LEVEL",
                "hierarchy": "test~process/main~document/hTMLField1~attribute"
              }
            ]
          }
        ]
      }
    ]
  }
}

Sample Response Body

{
  "taskId": 3023163957,
  "links": [{
      "rel": "related",
      "href": "http://sitename.oracle.com/rest/v19/tasks/3023163957"
    }
  ]
}
Back to Top