---
title: "Take or renew the cross-device write lease for this holder."
method: POST
path: "/drive/lease"
tags: ["Google Drive"]
---

# Take or renew the cross-device write lease for this holder.

`POST /drive/lease`

## Request

- Base URL: `https://www.livediagram.app/api`
- URL: `https://www.livediagram.app/api/drive/lease`
- Auth: HTTP bearer

## Request body

- object
  - `holder` string, required

## Response `200`

Success.

- DriveLease
  - `acquired` boolean, required
  - `expiresAt` number, nullable, required
  - `holder` string, nullable, required

## Other responses

- `400`: Error.
- `401`: Error.
- `404`: Error.
- `429`: Rate limited. Back off and retry.
- `503`: Error.

---

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