# Sync LDAP mapping for a user

From **GitHub v3 REST API**.

`POST /admin/ldap/users/{username}/sync`

Note that this API call does not automatically initiate an LDAP sync. Rather, if a `201` is returned, the sync job is queued successfully, and is performed when the instance is ready.

## Parameters

### `username`

- Location: path
- Required: true
- Type: `string`

## Responses

### `201`

Response

### `application/json`

- Type: `object`

```json
{
  "status": "queued"
}
```

```json
{"properties":{"status":{"type":"string"}},"type":"object"}
```

## Request examples

### cURL

```shell
curl --request POST \
  --url {protocol}://{hostname}/api/v3/admin/ldap/users/{username}/sync
```
