---
title: "Update existing LDAP server"
method: PATCH
path: "/ldapservers/{id}"
tags: ["LDAP Servers"]
---

# Update existing LDAP server

`PATCH /ldapservers/{id}`

## Request

- Base URL: `https://console.jumpcloud.com/api/v2`
- URL: `https://console.jumpcloud.com/api/v2/ldapservers/{id}`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/jumpcloud/apis/jumpcloud-api-2/docs/ldapservers/:id/patch.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint allows updating some attributes of an LDAP server.

Sample Request

```
curl -X PATCH https://console.jumpcloud.com/api/v2/ldapservers/{LDAP_ID} \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: {API_KEY}' \
  -d '{
    "userLockoutAction": "remove",
    "userPasswordExpirationAction": "disable"
  }'
```

## Headers

- `x-org-id` string

## Request body

- object
  - `id` string
  - `userLockoutAction` 'disable' | 'remove'
  - `userPasswordExpirationAction` 'disable' | 'remove'

## Response `200`

- object
  - `id` string
  - `name` string
  - `userLockoutAction` 'disable' | 'remove'
  - `userPasswordExpirationAction` 'disable' | 'remove'

## Other responses

- `400`

---

[API](https://skmtc.dev/jumpcloud/apis/jumpcloud-api-2.md) - [All operations](https://skmtc.dev/jumpcloud/apis/jumpcloud-api-2/llms.txt) - [OpenAPI document](https://skmtc.dev/jumpcloud/apis/jumpcloud-api-2/revisions/3f09fe63caaa?raw)
