---
title: "Update settings"
url: https://docs.gleap.ai/en/reference/rest-api/update-settings
method: PUT
path: "/settings"
api: "API Reference"
tag: "Settings"
operationId: "UpdateSettings"
updatedAt: "2026-11-01T18:40:15.677Z"
language: en
---

# Update settings

`PUT https://api.gleap.io/v3/settings`

Change settings with your role's rights. Returns what changed (old → new) and what was refused and why. Risky changes run only with `confirmed: true`; without it nothing runs and `needsConfirmation` says what to confirm.

## Authorization

- `Authorization` (header, required): `Bearer <token>`

## Headers

- `project` (string, required)

## Request body (`application/json`, required)

- `changes` (object[], required)
  - `key` (string)
  - `value` (any)
  - `page` (string)
  - `op` (enum<string>): One of: `create`, `update`, `delete`.
  - `id` (string)
  - `values` (object)
  - `site` (string)
- `confirmed` (boolean): The person said yes to the risky changes listed in `needsConfirmation` (SSO, identity verification, deleting …).

## Example request

```bash
curl --request PUT \
  --url https://api.gleap.io/v3/settings \
  --header 'Authorization: Bearer <token>' \
  --header 'project: <project>' \
  --header 'Content-Type: application/json' \
  --data '{
  "changes": [
    {}
  ]
}'
```

## Responses

### 200 (`application/json`)

Ok

- `changed` (object[], required)
  - `id` (string)
  - `after` (any)
  - `before` (any)
  - `key` (string)
  - `line` (string, required)
  - `page` (string, required)
- `refused` (object[], required)
  - `reason` (string, required)
  - `change` (string, required)
- `needsConfirmation` (object[]): Risky changes not run: the person says yes first (`confirmed: true`, or the card in Kai Copilot).
  - `why` (string, required)
  - `change` (string, required)

```json
{
  "changed": [
    {
      "id": "string",
      "key": "string",
      "line": "string",
      "page": "string"
    }
  ],
  "refused": [
    {
      "reason": "string",
      "change": "string"
    }
  ],
  "needsConfirmation": [
    {
      "why": "string",
      "change": "string"
    }
  ]
}
```
