---
title: "Stream Cancel Lease"
method: POST
path: "/api/v1.msgs.stream.cancel-lease"
tags: ["Msgs"]
---

# Stream Cancel Lease

`POST /api/v1.msgs.stream.cancel-lease`

Cancels a current stream lease.

Used when a consumer cannot process a batch and wants to release it immediately rather than
wait for lease expiration.

## Request body

- MsgStreamCancelLeaseIn
  - `namespace` string, nullable
  - `topic` string, required
  - `consumer_group` string, required

## Response `200`

- MsgStreamCancelLeaseOut

## Other responses

- `400`
- `401`
- `403`
- `422`

---

[API](https://skmtc.net/svix/apis/diom-api.md) · [All operations](https://skmtc.net/svix/apis/diom-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/svix/diom-api/versions/e98d7f3a3e10/schema)
