---
title: "Change requested settings with revision checking and history"
method: PATCH
path: "/v1/settings"
tags: ["settings"]
---

# Change requested settings with revision checking and history

`PATCH /v1/settings`

## Request

- Base URL: `http://localhost:4318`
- URL: `http://localhost:4318/v1/settings`
- Auth: HTTP bearer

## Request body

- object
  - `change` object, required
    - `name` string
    - `calorieGoal` integer
    - `proteinGoal` number
    - `carbsGoal` number
    - `fatGoal` number
    - `timezone` string
    - `weightUnit` 'kg' | 'lb'
    - `onboardingCompleted` boolean
    - `onboardingSkipped` boolean
  - `expectedRevision` integer, required
  - `reason` string

## Response `200`

Success

- object

## Other responses

- `400`: Invalid input
- `401`: Missing or invalid bearer token
- `409`: Revision or idempotency conflict
- `429`: Rate limit exceeded

---

[API](https://skmtc.dev/nibb/apis/nibb-api.md) · [All operations](https://skmtc.dev/nibb/apis/nibb-api/llms.txt) · [OpenAPI document](https://skmtc.dev/nibb/apis/nibb-api/revisions/75bcd8b761ed?raw)
