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
- application/json
Header Parameters
-
password(required): string
Source site user password.
-
siteUrl(required): string
Source site URL.
-
username(required): string
Source site user name.
Migrate content request.
Root Schema : Site Migrate Request
Type:
objectTitle:
Site Migrate RequestMigrate request
Show Source
-
cleanPkgsOfSameName:
boolean
Title:
Clean Packages Of Same NameDelete the packages from resources having the same name -
contents:
object Migration Content
Title:
Migration Content -
dependencies:
object Migration Resource Content Dependencies
Title:
Migration Resource Content Dependencies -
excludeContents:
object Exclude Content
Title:
Exclude Content -
includeSnapshot:
boolean
Title:
Include SnapshotIf true, create a snapshot -
migrationDescription:
string
Title:
Migration DescriptionDescription -
packageIdentifier:
string
Title:
Package IdentifierIdentifier of the package -
sendNotificationTo:
string
Title:
Send Notification ToEmail address to send migrate info(success or error)
Nested Schema : Migration Content
Type:
objectTitle:
Show Source
Migration Content-
items:
array Migration Content List
Title:
Migration Content ListList of Migration Contents
Nested Schema : Migration Resource Content Dependencies
Type:
objectTitle:
Show Source
Migration Resource Content Dependencies-
items:
array List of Migration Resource Dependencies
Title:
List of Migration Resource DependenciesList of migration resource content dependencies
Nested Schema : Exclude Content
Type:
objectTitle:
Show Source
Exclude Content-
items:
array List of Migration Resource Content
Title:
List of Migration Resource ContentList of migration resource contents to be excluded
Nested Schema : Migration Content List
Type:
arrayTitle:
Migration Content ListList of Migration Contents
Show Source
-
Array of:
object migrationPackage-requestChildren
Content for the Create, Update and Update Contents Migration Package
Nested Schema : migrationPackage-requestChildren
Type:
objectContent for the Create, Update and Update Contents Migration Package
Show Source
-
category(required):
string
Title:
Migration Package Contents CategoryCategory of migration contents -
checked:
boolean
Title:
checkedDefault Value:trueIf true, add the resource to the package content -
children:
array List of children contents
Title:
List of children contentsList of children contents -
name:
string
Title:
Migration Package Contents NameName is an optional field in the request payload
Nested Schema : List of children contents
Type:
arrayTitle:
List of children contentsList of children contents
Show Source
-
Array of:
object migratePackage-subChildren
Migration Resource children contents
Nested Schema : migratePackage-subChildren
Type:
objectMigration Resource children contents
Show Source
-
checked:
boolean
Title:
checkedIf true, add the resource to the package content -
children:
array List of children contents
Title:
List of children contentsList of children contents -
granular:
boolean
Title:
granularDefault Value:falseIf true, the resource has low-level details -
name:
string
Title:
Migration Package Resource NameName is an optional field in Request Payload -
resourceType(required):
string
Title:
Migration Package node nameresourceType refers the node (This field is mandatory only for low-level details objects) -
variableName(required):
string
Title:
Migration Package Content Child NamevariableName refers the child name
Nested Schema : List of children contents
Type:
arrayTitle:
List of children contentsList of children contents
Show Source
Nested Schema : migrationPackage-lowLevelUpdateRequest
Type:
Show Source
object-
checkedAllChildren:
boolean
Title:
checkedAllChildrenDefault Value:falseIf true, considers all the children of the resource as selected. -
children:
array List of children contents
Title:
List of children contentsList of children contents -
resourceType(required):
string
Title:
resourceTypeThis field represents the type of resource. -
variableName(required):
string
Title:
variableNameThis field represents the variableName of the resource.
Nested Schema : List of children contents
Type:
arrayTitle:
List of children contentsList of children contents
Show Source
Nested Schema : migrationPackage-lowLevelUpdateRequest-children
Type:
Show Source
object-
resourceType(required):
string
Title:
resourceTypeThis field represents the type of resource -
variableName(required):
string
Title:
variableNameThis field represents the variableName of the resource.
Nested Schema : List of Migration Resource Dependencies
Type:
arrayTitle:
List of Migration Resource DependenciesList of migration resource content dependencies
Show Source
Nested Schema : dependency-Response
Type:
Show Source
object-
items:
array List of Dependent Resources
Title:
List of Dependent ResourcesList of dependent resources
Nested Schema : List of Dependent Resources
Type:
arrayTitle:
List of Dependent ResourcesList of dependent resources
Show Source
-
Array of:
object dependencyResponse-children
Dependency response
Nested Schema : dependencyResponse-children
Type:
objectDependency response
Show Source
-
category:
string
Title:
Migration Resource CategoryCategory -
children:
array List of Resources
Title:
List of ResourcesList of resources -
name:
string
Title:
Migration Resource Category NameName of the category
Nested Schema : List of Resources
Type:
arrayTitle:
List of ResourcesList of resources
Show Source
-
Array of:
object dependencyResponse-subChildren
Migration resource
Nested Schema : dependencyResponse-subChildren
Type:
objectMigration resource
Show Source
-
dependencies:
array List of Migration Resource Dependencies
Title:
List of Migration Resource DependenciesList of migration resource dependencies -
name:
string
Title:
Migration Resource NameName of resource -
resourceType:
string
Title:
Migration Package node nameresourceType refers to the node type -
resourceTypeLabel:
string
Title:
Migration Resource Type LabelresourceTypeLabel refers the node type label -
variableName:
string
Title:
Migration Resouce Variable NameMigration resource variable name
Nested Schema : List of Migration Resource Dependencies
Type:
arrayTitle:
List of Migration Resource DependenciesList of migration resource dependencies
Show Source
-
Array of:
object dependencyDetails
Migration resource dependency
Nested Schema : dependencyDetails
Type:
objectMigration resource dependency
Show Source
-
category:
string
Title:
Migration Resource CategoryMigration resource category -
hierarchy:
string
Title:
Migration Resource HierarchyHierarchy refers path information of the resource -
hierarchyLabel:
string
Title:
Migration Resource Hierarchy LabelHierarchy label refers path information of the resource -
name:
string
Title:
Migration Resource NameName of the resource -
resourceType:
string
Title:
Migration Package node nameresourceType refers to the node type -
resourceTypeLabel:
string
Title:
Migration Resource Type LabelresourceTypeLabel refers the node type label -
type:
string
Title:
Migration Resource Dependency TypeMigration resource dependency type -
variableName:
string
Title:
Migration Resource Variable NameMigration resource variable name
Nested Schema : List of Migration Resource Content
Type:
arrayTitle:
List of Migration Resource ContentList of migration resource contents to be excluded
Show Source
-
Array of:
object migrationPackage-requestChildren
Content for the Create, Update and Update Contents Migration Package
Response
Supported Media Types
- application/json
Default Response
Migrate task response
Root 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 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"
}
]
}