Create a Channel

post

/console/admin/api/v1.1/channels

Create a channel on your blockchain network. You can set the application capabilities version for the channel. Refer to the Oracle Blockchain Platform User Guide to learn about capabilities and which version you should select.

Request

Supported Media Types
Body ()
Create a channel. Only certificates from v1.1 API can be used.
Root Schema : createchannel
Type: object
Show Source
Example:
{
    "channelName":"mychannel",
    "applicationCapabilitiesVersion":"V1_1|V1_3(default)",
    "organizations":[
        {
            "name":"Org1MSP",
            "mspId":"Org1MSP",
            "anchorPeers":[
                "peer.org1.example.com:7051"
            ],
            "certs":{
                "adminCert":"example",
                "CACert":"example",
                "tlsCACert":"example"
            },
            "signature":"example"
        },
        {
            "name":"Org2MSP",
            "mspId":"Org2MSP",
            "anchorPeers":[
                "peer.org2.example.com:7051"
            ],
            "certs":{
                "adminCert":"example",
                "CACert":"example",
                "tlsCACert":"example"
            },
            "signature":"example"
        }
    ],
    "policies":{
        "readers":{
            "mspIds":[
                "Org1MSP",
                "org2MSP"
            ]
        },
        "writers":{
            "mspIds":[
                "Org1MSP",
                "org2MSP"
            ]
        }
    }
}
Nested Schema : organizations
Type: array
Show Source
Nested Schema : policies
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : anchorPeers
Type: array
Show Source
Nested Schema : certs
Type: object
Show Source
Nested Schema : readers
Type: object
Show Source
Nested Schema : writers
Type: object
Show Source
Nested Schema : mspIds
Type: array
Show Source
Nested Schema : mspIds
Type: array
Show Source
Back to Top

Response

Supported Media Types

201 Response

Channel created
Body ()
Root Schema : schema
Type: object
Example:
{
    "status":"SUCCESS"
}

202 Response

In progress
Body ()
Root Schema : schema
Type: object
Example:
{
    "status":"IN PROGRESS"
}

400 Response

Invalid argument
Body ()
Root Schema : 400errorModels
Type: object
Show Source
Example:
{
    "respMesg":"invalid argument"
}

401 Response

Unauthorized

403 Response

Forbidden

500 Response

Internal Server Error
Body ()
Root Schema : 500errorModels
Type: object
Show Source

Default Response

Unexpected error
Body ()
Root Schema : errorModel
Type: object
Show Source
Back to Top