Register a New Blockchain Platform Patch

post

/api/v1/blockchainPlatforms/patches

Register a new Blockchain Platform patch.

Request

Supported Media Types
Form Parameters
  • A tar archive file containing patch details - metadata.json scripts/prePatch.sh scripts/postPatch.sh .tgz for each component.
Back to Top

Response

Supported Media Types

200 Response

OK
Body ()
Root Schema : PatchInfoSummary
Type: object
Show Source

400 Response

Bad Request

401 Response

Not authorized

409 Response

Operation conflict
Body ()
Root Schema : Error
Type: object
Error Information.
Show Source
Nested Schema : errors
Type: array
list of errors
Show Source
Nested Schema : warnings
Type: array
list of warnings
Show Source

500 Response

Service unavailable

Default Response

Unknown Error
Body ()
Root Schema : Error
Type: object
Error Information.
Show Source
Nested Schema : errors
Type: array
list of errors
Show Source
Nested Schema : warnings
Type: array
list of warnings
Show Source
Back to Top

Examples

This endpoint is used to register a new Blockchain Platform patch.

The following example shows how to query and register a new Blockchain Platform patch by submitting a POST request on the REST resource using cURL

curl -X POST http://<hostname>:<port>/api/v1/blockchainPlatforms/patches 
-H 'Authorization: Basic amFzc2l0ZXN0OndlbGNvbWUx' 
-F patchArchive=@/home/oracle/obp-19-3-3.zip

Example of the Response Body

The following example shows the contents of the response body in JSON format:

{
  "patchId" : "obp-patch-19-3-3",
  "displayName" : "OBP Patch 19.3.3",
  "description" : "OBP Patch 19.3.3",
  "serviceVersion" : "19.3",
  "release" : "3",
  "fullVersion" : "19.3.3",
  "prevVersion" : null,
  "rollbackable" : null,
  "applicable" : null,
  "status" : null
}
Back to Top