Update Channel Configuration (Deprecated in v19.1.3)

patch

/console/admin/api/v1.1/channels/{channelName}

You can modify a channel's configuration by supplying updated channel configuration information.

Request

Supported Media Types
Path Parameters
Body ()
Updated channel information
Root Schema : patchChannel
Type: object
Show Source
Example:
{
    "organizations":[
        {
            "name":"Org1MSP",
            "mspId":"Org1MSP",
            "certs":{
                "adminCert":"example",
                "CACert":"example",
                "tlsCACert":"example"
            },
            "signature":"example"
        }
    ],
    "policies":{
        "readers":{
            "mspids":[
                "org1",
                "org2"
            ]
        },
        "writers":{
            "mspids":[
                "org1",
                "org2"
            ]
        }
    }
}
Nested Schema : organizations
Type: array
Show Source
Nested Schema : policies
Type: object
Show Source
Nested Schema : items
Type: object
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

200 Response

Success

400 Response

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

401 Response

Unauthorized

Default Response

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