---
title: "Update the caller's platform preferences [write]"
method: PATCH
path: "/preferences"
---

# Update the caller's platform preferences \[write\]

`PATCH /preferences`

## Request

- Base URL: `https://api.agentsky.dev/v1`
- URL: `https://api.agentsky.dev/v1/preferences`
- Auth: HTTP bearer

Change default_budget_usd (a dollar string like '5.00', or null to clear), model_improvement (boolean), language ('en', 'zh', or null to follow the browser or the Mac), or any of them together. Returns all preferences after the update.

## Request body

- object
  - `default_budget_usd` string, nullable: New default budget as a USD string or null to clear
  - `model_improvement` boolean
  - `language` 'en' | 'zh', nullable

## Response `200`

OK

- object
  - `preferences` object
    - `default_budget_usd` string, nullable
    - `model_improvement` boolean
    - `language` 'en' | 'zh', nullable

## Other responses

- `default`: Error — { error: { code, message, request_id } }

## Changes

- **2026-11-02** `e5e8f0229a99`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/agentsky/apis/agentsky-developer-api/changes/preferences/patch.md)

---

[API](https://skmtc.dev/agentsky/apis/agentsky-developer-api.md) - [All operations](https://skmtc.dev/agentsky/apis/agentsky-developer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agentsky/apis/agentsky-developer-api/revisions/0d435187cd55?raw)
