---
title: "GET /private/disable_cancel_on_disconnect"
method: GET
path: "/private/disable_cancel_on_disconnect"
tags: ["Session Management", "Private"]
---

# GET /private/disable_cancel_on_disconnect

`GET /private/disable_cancel_on_disconnect`

Disable Cancel On Disconnect for the connection.

When change is applied for the account, then every newly opened connection will start with **inactive** Cancel on Disconnect.

**WebSocket Only:** This method is designed exclusively for WebSocket connections. Attempting to use it via REST/HTTP will result in an error response.

**Scope:** `account:read_write`

[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fdisable_cancel_on_disconnect)

## Query parameters

- `scope` 'connection' | 'account'

## Response `200`

Success response

- OkResponse
  - `jsonrpc` '2.0', required — The JSON-RPC version (2.0)
  - `id` integer — The id that was sent in the request
  - `result` 'ok', required — Result of method execution. `ok` in case of success

---

[API](https://skmtc.net/deribit/apis/deribit-api-2.md) · [All operations](https://skmtc.net/deribit/apis/deribit-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/deribit/deribit-api-2/revisions/8dfbbe9fdddf/schema)
