---
title: "Queue Extend Lease"
method: POST
path: "/api/v1.msgs.queue.extend-lease"
tags: ["Msgs"]
---

# Queue Extend Lease

`POST /api/v1.msgs.queue.extend-lease`

Extends the lease on in-flight messages.

Consumers that need more processing time can call this before the lease expires to prevent the
message from being re-delivered to another consumer.

## Request body

- MsgQueueExtendLeaseIn
  - `namespace` string, nullable
  - `topic` string, required
  - `consumer_group` string, required
  - `msg_ids` string[], required
  - `lease_duration_ms` integer

## Response `200`

- MsgQueueExtendLeaseOut

## 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)
