Update a Migration Package

patch

/rest/v16/migrationPackages/{identifier}

Use this endpoint to update the migration package properties of an existing migration package. Only the specified properties are added or updated using the PATCH method.

Request

Supported Media Types
Path Parameters
Body ()
Update migration package request.
Root Schema : migrationPackage-request
Type: object
Migration package request body for create package
Show Source
Nested Schema : Migration Package Contents
Type: object
Title: Migration Package Contents
Contents for the Migration Package
Show Source
Nested Schema : Migration Package Dependencies
Type: object
Title: Migration Package Dependencies
Dependent Packages for the Migration Package
Show Source
Nested Schema : Migration Package Content List
Type: array
Title: Migration Package Content List
List of Migration Package 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 : Migration Package Dependencies list
Type: array
Title: Migration Package Dependencies list
list of migration package dependencies
Show Source
Nested Schema : migrationPackageDependency
Type: object
Show Source
Back to Top

Response

Supported Media Types

Default Response

Update package response.
Body ()
Root Schema : migrationPackage-reponse
Type: object
Show Source
Nested Schema : Migration Package Dependencies
Type: object
Title: Migration Package Dependencies
Dependent Packages for the Migration Package
Show Source
Nested Schema : Migration Package Dependencies list
Type: array
Title: Migration Package Dependencies list
List of Dependencies for Migration Package
Show Source
Nested Schema : migrationPackageDependency
Type: object
Show Source
Back to Top

Examples

The following example updates the migration package properties of an existing migration package by submitting a PATCH 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/pkg2_v1

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/v16/migrationPackages/pkg2_v1"
    }, {
      "rel": "child",
      "href": "http://sitename.oracle.com/rest/v16/migrationPackages/pkg2_v1/contents",
      "name": "contents"
    }
  ]
}
Back to Top