Create a Channel
post
/console/admin/api/v2/channels
Create a channel on your blockchain network.
Request
Supported Media Types
- application/json
Create channel object. Only certificates exported from the v2 API can be used.
Root Schema : createchannel
Type:
Show Source
object
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"
]
}
}
}
Response
Supported Media Types
- application/json
201 Response
Created
Root Schema : schema
Type:
object
Example:
{
"status":"SUCCESS"
}
202 Response
In Progress
Root Schema : schema
Type:
object
Example:
{
"status":"IN PROGRESS"
}
400 Response
Invalid arguments
401 Response
Unauthorized
403 Response
Forbidden
500 Response
Internal server error
Default Response
Unexpected error