# Promote a user to be a site administrator

From **GitHub v3 REST API**.

`PUT /users/{username}/site_admin`

Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://docs.github.com/enterprise-server@3.0/rest/overview/resources-in-the-rest-api#http-verbs)."

## Parameters

### `username`

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

## Responses

### `204`

Response

## Request examples

### cURL

```shell
curl --request PUT \
  --url {protocol}://{hostname}/api/v3/users/{username}/site_admin
```
