Update Migration Package Resource Low-level Details
put
/rest/v16/migrationPackages/{identifier}/contents/{category}/{variableName}
Use this endpoint to update low-level details of a migration resource within a specific category of a migration package. Using the PUT method replaces the entire package contents with new package contents.
Request
Supported Media Types
- application/json
Path Parameters
-
category(required): string
Migration category for which the user wants to update the low-level details.
-
identifier(required): string
The unique identifier of the package the user wants to update.
-
variableName(required): string
Variable Name of the migration category resource for which the user wants to update the low-level details.
Migration package low-level details request.
Root Schema : schema
Type:
Show Source
object
-
checkedAll:
boolean
Title:
checkedAll
If true, include all migratable resources within low-level details. -
items:
array low-level details list
Title:
low-level details list
List of low-level details
Nested Schema : low-level details list
Type:
array
Title:
low-level details list
List of low-level details
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 low-level details response
Root Schema : migration-lowLevelResponse
Type:
Show Source
object
-
children:
array Migration resources low-level details Children
Title:
Migration resources low-level details Children
Migration resources low-level details children -
lastModified:
string
Title:
lastModified
The last modified date, in a presentable string format. Used in the tree for this object -
links:
array Migration resources low-level details links
Title:
Migration resources low-level details links
shows self and parent links -
modifiedByUser:
string
Title:
modifiedByUser
The modifiedByUser used in the tree for this object -
name:
string
Title:
name
The name used in the tree for this object. -
variableName:
string
Title:
variableName
The variableName used in the tree for this object
Nested Schema : Migration resources low-level details Children
Type:
array
Title:
Migration resources low-level details Children
Migration resources low-level details children
Show Source
Nested Schema : Migration resources low-level details links
Type:
array
Title:
Migration resources low-level details links
shows self and parent links
Show Source
-
Array of:
object referenceLinks
Reference links for the Parent, Self, Children and Related as applicable
Nested Schema : migrationPackageLowLevelDetails-children
Type:
Show Source
object
-
lastModified:
string
Title:
lastModified
The last modified date, in a presentable string format. Used in the tree for this object. -
modifiedByUser:
string
Title:
modifiedByUser
The modifiedByUser used in the tree for this object -
name:
string
Title:
name
The name used in the tree for this object. -
resourceType:
string
Title:
resourceType
This field represents the type of resource. -
variableName:
string
Title:
variableName
This field represents the variableName of the resource.
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 low-level details of a migration resource within a specific category of 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 -i -H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" -H "Accept: application/json" https://sitename.oracle.com/rest/v16/migrationPackages/migrationPackage_v1/contents/commerce/test
Request Body Sample
{ "items": [{ "variableName": "main", "resourceType": "document", "children": [{ "variableName": "submit", "resourceType": "action" } ] } ] }
Response Body Sample
{ "name": "Test", "variableName": "test", "modifiedByUser": "matt", "lastModified": "09/19/2019 12:30 PM", "children": [{ "name": "Main", "variableName": "main", "resourceType": "document", "modifiedByUser": "matt", "lastModified": "09/18/2019 3:07 PM", "children": [{ "name": "Submit", "variableName": "submit", "resourceType": "action", "modifiedByUser": "asuh", "lastModified": "06/06/2019 1:24 PM" } ] } ], "links": [{ "rel": "self", "href": "http://sitename.oracle.com/rest/v16/migrationPackages/migrationPackage_v1/contents/COMMERCE/test" } ] }