# Cancel a request

Cancel a request, for example the export of the data of a generic object by using the [CancelRequest method](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/EngineJSONAPI/Content/service-global-cancelrequest.htm).

## Example

[](https://help.qlik.com/en-US/sense-developer/Subsystems/EngineAPI/Content/Sense_EngineAPI/WorkingWithAppsAndVisualizations/ExportData/cancel-request.htm)

#### The goal of this example is to cancel a request.

The handle of the request is -1 because the [CancelRequest method](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/EngineJSONAPI/Content/service-global-cancelrequest.htm) applies at global level. The identifier of the request to stop is set in qRequestId.

The client sends:

```
{
  "jsonrpc": "2.0",
  "id": 3,
  "method": "CancelRequest",
  "handle": -1,
  "params": [
    3
  ]
}
```

The engine returns:

```
{
  "jsonrpc": "2.0",
  "id": 3,
  "result": {}
}
```

The request with identifier 3 is stopped.