Update Migration Package Content
put
/rest/v19/migrationPackages/{identifier}/contents
This endpoint updates all content within a migration package. Using the PUT method replaces the entire package contents with new package contents.
Request
Supported Media Types
- application/json
Path Parameters
-
identifier(required): string
The unique identifier of the package for which the user wants to update the content.
Update package content request.
Root Schema : schema
Type:
Show Source
object
-
items:
array Migration package content request
Title:
Migration package content request
List of migration package contents.
Nested Schema : Migration package content request
Type:
array
Title:
Migration package content request
List of migration package contents.
Show Source
-
Array of:
object migrationPackage-requestChildren
Content for the Create, Update and Update Contents Migration Package
Nested Schema : migrationPackage-requestChildren
Type:
object
Content for the Create, Update and Update Contents Migration Package
Show Source
-
category(required):
string
Title:
Migration Package Contents Category
Category of migration contents -
checked:
boolean
Title:
checked
Default Value:true
If true, add the resource to the package content -
children:
array List of children contents
Title:
List of children contents
List of children contents -
name:
string
Title:
Migration Package Contents Name
Name is an optional field in the request payload
Nested Schema : List of children contents
Type:
array
Title:
List of children contents
List of children contents
Show Source
-
Array of:
object migratePackage-subChildren
Migration Resource children contents
Nested Schema : migratePackage-subChildren
Type:
object
Migration Resource children contents
Show Source
-
checked:
boolean
Title:
checked
If true, add the resource to the package content -
children:
array List of children contents
Title:
List of children contents
List of children contents -
granular:
boolean
Title:
granular
Default Value:false
If true, the resource has low-level details -
name:
string
Title:
Migration Package Resource Name
Name is an optional field in Request Payload -
resourceType(required):
string
Title:
Migration Package node name
resourceType refers the node (This field is mandatory only for low-level details objects) -
variableName(required):
string
Title:
Migration Package Content Child Name
variableName refers the child name
Nested Schema : List of children contents
Type:
array
Title:
List of children contents
List of children contents
Show Source
Nested Schema : migrationPackage-lowLevelUpdateRequest
Type:
Show Source
object
-
checkedAllChildren:
boolean
Title:
checkedAllChildren
Default Value:false
If true, considers all the children of the resource as selected. -
children:
array List of children contents
Title:
List of children contents
List of children contents -
resourceType(required):
string
Title:
resourceType
This field represents the type of resource. -
variableName(required):
string
Title:
variableName
This field represents the variableName of the resource.
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:
Show Source
object
-
resourceType(required):
string
Title:
resourceType
This field represents the type of resource -
variableName(required):
string
Title:
variableName
This field represents the variableName of the resource.
Response
Supported Media Types
- application/json
Default Response
Migration package contents response
Root Schema : migrationContent-collection
Type:
Show Source
object
-
items:
array Migration resources list
Title:
Migration resources list
List of migration resources -
links:
array Migration Package Links
Title:
Migration Package Links
Links for Migration Package Contents. These links contains self and parent link
Nested Schema : Migration resources list
Type:
array
Title:
Migration resources list
List of migration resources
Show Source
-
Array of:
object migrationContent
Low-level details
Nested Schema : Migration Package Links
Type:
array
Title:
Migration Package Links
Links for Migration Package Contents. These links contains self and parent link
Show Source
-
Array of:
object referenceLinks
Reference links for the Parent, Self, Children and Related as applicable
Nested Schema : migrationContent
Type:
object
Low-level details
Show Source
-
category:
string
Title:
Migration Package Contents Category
It's a category of migration contents -
children:
array List of children contents
Title:
List of children contents
List of children contents -
name:
string
Title:
Migration Package Contents Name
Name is an optional field in the request payload
Nested Schema : List of children contents
Type:
array
Title:
List of children contents
List of children contents
Show Source
-
Array of:
object migrationContent-children
Migration Resource children contents
Nested Schema : migrationContent-children
Type:
object
Migration Resource children contents
Show Source
-
granular:
boolean
Title:
granular
If true, the resource has low-level details -
links:
array Category Migration Resource Links
Title:
Category Migration Resource Links
Links for Category Migration Package Contents low-level details. These links contains related link (This links populate only when granular=true) -
name:
string
Title:
Migration Resource Child Name
Name is an optional field in Request Payload -
resourceType:
string
Title:
Migration Package node name
resourceType refers to the node type -
resourceTypeLabel:
string
Title:
Migration Resource Type Label
resourceTypeLabel refers the node type label -
variableName:
string
Title:
Migration Resource Child VarName
variable name refers the child varname
Nested Schema : Category Migration Resource Links
Type:
array
Title:
Category Migration Resource Links
Links for Category Migration Package Contents low-level details. These links contains related link (This links populate only when granular=true)
Show Source
-
Array of:
object referenceLinks
Reference links for the Parent, Self, Children and Related as applicable
Nested Schema : referenceLinks
Type:
object
Reference links for the Parent, Self, Children and Related as applicable
Show Source
-
href:
string
Title:
URL to the related object
URL to the related object -
rel:
string
Title:
Link Relationship to the current object
Link Relationship to the current object
Examples
The following example shows how to update all content within a migration package by submitting a PUT 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/pkg2/contents
Request Body Sample
{ "name": "pkg2", "contents": { "items": [{ "name": "Commerce", "category": "COMMERCE", "children": [{ "name": "Formula", "variableName": "formula", "resourceType": "process" }, { "name": "Test", "variableName": "test", "resourceType": "process", "granular": true, "children": [{ "name": "Move", "variableName": "_action_process_move", "resourceType": "action", "modifiedByUser": "matt", "lastModified": "07/05/2023 11:28 PM" }, { "name": "Email", "variableName": "_action_process_email_print", "resourceType": "action", "modifiedByUser": "matt", "lastModified": "07/05/2023 11:28 PM" }, { "name": "Main", "variableName": "main", "resourceType": "document", "modifiedByUser": "matt", "lastModified": "07/05/2023 11:27 PM" } ] } ] } ] } }
Response Body Sample
{ "name": "pkg2", "identifier": "pkg2_v1", "version": 1, "dateAdded": "2023-08-24T09:31:42.000Z", "dateModified": "2023-08-24T09:31:42.000Z", "dependencies": {}, "links": [{ "rel": "self", "href": "http://sitename.oracle.com/rest/v19/migrationPackages/pkg2_v1" }, { "rel": "child", "href": "http://sitename.oracle.com/rest/v19/migrationPackages/pkg2_v1/contents", "name": "contents" } ] }