Create New Blockchain Platform Instance

post

/api/v1/blockchainPlatforms/instances

Create a new Blockchain Platform instance.

Request

Supported Media Types
Form Parameters
Back to Top

Response

Supported Media Types

202 Response

Accepted
Headers

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 create a new Blockchain Platform instance.

The following example shows how to query and create a new Blockchain instance by submitting a POST request on the REST resource using cURL:

curl -X POST \
  http://<hostname>:<port>/api/v1/blockchainPlatforms/instances \
  -H 'Authorization: Basic b2JwdXNlcjpXZWxjb21lMQ==' \
  -H 'Content-Type: application/json'
  
  

Example of the Request Body

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

"name": "obpinstance1",
"desc": "test instance",
"platformRole": "founder",
"configuration": "Developer",
"domainName": "example.com",
"peer": 4,
}

Example of the Response Body

The following example shows the contents of the response body:

202 Accepted
Back to Top