---
title: "Release the maintenance lease"
method: DELETE
path: "/vaults/v1/{vault_id}/maintenance-leases/{maintenance_lease_id}"
tags: ["vault"]
---

# Release the maintenance lease

`DELETE /vaults/v1/{vault_id}/maintenance-leases/{maintenance_lease_id}`

## Request

- Base URL: `https://api.run402.com`
- URL: `https://api.run402.com/vaults/v1/{vault_id}/maintenance-leases/{maintenance_lease_id}`
- Auth: one of:
  - API key in header `SIGN-IN-WITH-X`
  - HTTP bearer

Ends the lease early and frees the organization's maintenance slot. Cannot release a lease you do not hold.

## Path parameters

- `vault_id` string, required
- `maintenance_lease_id` string, required

## Headers

- `SIGN-IN-WITH-X` string, required

## Request body

- object
  - `holder_token` string, required

## Response `200`

Lease released

- object
  - `maintenance_lease_id` string
  - `status` 'released'

## Other responses

- `400`: VALIDATION_FAILED
- `403`: Not authorized (VAULT_ACCESS_DENIED)
- `404`: No active lease you hold matches

---

[API](https://skmtc.dev/run402/apis/run402-api.md) · [All operations](https://skmtc.dev/run402/apis/run402-api/llms.txt) · [OpenAPI document](https://skmtc.dev/run402/apis/run402-api/revisions/893607557f50?raw)
