# Set settings

From **GitHub v3 REST API**.

`PUT /setup/api/settings`

For a list of the available settings, see the [Get settings endpoint](https://docs.github.com/enterprise-server@3.0/rest/reference/enterprise-admin#get-settings).

**Note:** The request body for this operation must be submitted as `application/x-www-form-urlencoded` data. You can submit a parameter value as a string, or you can use a tool such as `curl` to submit a parameter value as the contents of a text file. For more information, see the [`curl` documentation](https://curl.se/docs/manpage.html#--data-urlencode).

## Request body

- Required: true
### `application/x-www-form-urlencoded`

- Type: `object`

```json
{
  "settings": "{ \"enterprise\": { \"public_pages\": true }}"
}
```

```json
{"properties":{"settings":{"description":"A JSON string with the new settings. Note that you only need to pass the specific settings you want to modify. For a list of the available settings, see the [Get settings endpoint](https://docs.github.com/enterprise-server@3.0/rest/reference/enterprise-admin#get-settings).","type":"string"}},"required":["settings"],"type":"object"}
```

## Responses

### `204`

Response

## Request examples

### cURL

```shell
curl --request PUT \
  --url {protocol}://{hostname}/api/v3/setup/api/settings \
  --header 'content-type: application/x-www-form-urlencoded' \
  --data '{
  "settings": "{ \"enterprise\": { \"public_pages\": true }}"
}'
```
