Unsubscribe from an Event



Unsubscribe from an event


Supported Media Types
Path Parameters
Query Parameters
Back to Top


Supported Media Types

200 Response

Successful operation
Body ()
Root Schema : schema
Type: object
Show Source
Nested Schema : result
Type: array
Show Source
Nested Schema : UnEventSubscription
Type: object
Show Source

400 Response

Bad Request

401 Response

Not authorized

403 Response


404 Response

Invalid parameters

500 Response

Service unavailable
Back to Top


This endpoint is used to unsubscribe from an event.

The following example shows how to unsubscribe from an event by submitting a DELETE request on the REST resource using cURL.

curl -v -u <username>:<password> -X DELETE \
  '<restproxy of your blockchain instance>/api/v2/channels/<channelName>/event-subscriptions?role=<role>&user-id=<username>&subscription-id=<subscription ID>&channelName=<channel_name>'

For example,

curl -v -u obpuser:<password> -X DELETE \


You can find the rest proxy value of your blockchain instance from the Nodes tab of your instance console.

Example of the Response Body

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

   "returnCode": "Success",
   "error": "",
   "result": {
       "subid": "user1-dc28b77c-7e58-4b09-ae23-b2c01fa01b70",
       "status": 200
Back to Top