---
title: "Adds a static lease"
method: POST
path: "/dhcp/add_static_lease"
tags: ["dhcp"]
---

# Adds a static lease

`POST /dhcp/add_static_lease`

## Request

- Base URL: `/control` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/control/dhcp/add_static_lease`
- Auth: HTTP basic

## Request body

- DhcpStaticLease: DHCP static lease information
  - `mac` string, required
  - `ip` string, required
  - `hostname` string, required

## Response `200`

OK.

## Other responses

- `501`: Not implemented (for example, on Windows).

---

[API](https://skmtc.dev/guardllamanet/apis/adguard-home.md) - [All operations](https://skmtc.dev/guardllamanet/apis/adguard-home/llms.txt) - [OpenAPI document](https://skmtc.dev/guardllamanet/apis/adguard-home/revisions/14ff21aeb363?raw)
