Create a Channel

post

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

Create a channel on your blockchain network.

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",
    "organizations":[
        {
            "name":"Org1MSP",
            "mspId":"Org1MSP",
            "anchorPeers":[
                "peer.org1.example.com:7051"
            ],
            "certs":{
                "adminCert":"example",
                "CACert":"example",
                "tlsCACert":"example",
                "intermediatecerts":"example",
                "nodeouIdentifierCert":"example",
                "rafttlsCACert":"example"
            },
            "signature":"example"
        },
        {
            "name":"Org2MSP",
            "mspId":"Org2MSP",
            "anchorPeers":[
                "peer.org2.example.com:7051"
            ],
            "certs":{
                "adminCert":"example",
                "CACert":"example",
                "tlsCACert":"example",
                "intermediatecerts":"example",
                "nodeouIdentifierCert":"example",
                "rafttlsCACert":"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