---
title: "Leave the AD domain"
method: POST
path: "/directory-services/active-directory/leave"
tags: ["Directory Services"]
---

# Leave the AD domain

`POST /directory-services/active-directory/leave`

## Request

- Base URL: `https://sylve.lan:8181/api`
- URL: `https://sylve.lan:8181/api/directory-services/active-directory/leave`
- Auth: API key in header `Authorization`

## Request body

- GithubComAlchemillahqSylveInternalServicesDirectoryservicesLeaveInput
  - `localOnly` boolean
  - `password` string
  - `username` string

## Response `200`

OK

- GithubComAlchemillahqSylveInternalAPIResponseAny
  - `data` unknown
  - `error` string
  - `message` string
  - `status` string

## Other responses

- `409`: Conflict
- `502`: Bad Gateway

## Changes

- **2026-10-13** `3b2ab23c2629`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/alchemillahq/apis/sylve-api/changes/directory-services/active-directory/leave/post.md)

---

[API](https://skmtc.dev/alchemillahq/apis/sylve-api.md) - [All operations](https://skmtc.dev/alchemillahq/apis/sylve-api/llms.txt) - [OpenAPI document](https://skmtc.dev/alchemillahq/apis/sylve-api/revisions/9565cdd0abf5?raw)
