---
title: "Replace mutable note fields"
method: PUT
path: "/api/v1/user/notes/{id}"
tags: ["User"]
---

# Replace mutable note fields

`PUT /api/v1/user/notes/{id}`

## Path parameters

- `id` integer, required

## Headers

- `X-CSRF-Token` string, required

## Request body

- UserNoteUpdateRequest
  - `title` string
  - `body` string
  - `pinned` boolean

## Response `200`

Updated

- OkResponse
  - `ok` boolean, required

## Other responses

- `400` — Invalid request
- `401` — Authentication required (no active session)
- `403` — Invalid CSRF
- `404` — Resource not found

## Changes

- **2026-07-26** `996f96a11758` — 2 breaking, 1 warning, 6 info
  - added the new required `header` request parameter `X-CSRF-Token`
  - added required request body
  - for the `path` request parameter `id`, the min was set to `1.00`
  - api operation id `putUserNotesById` was added
  - …5 more

[Change history](https://skmtc.dev/openmercantil/apis/openmercantil-public-api/changes/api/v1/user/notes/:id/put.md)

---

[API](https://skmtc.dev/openmercantil/apis/openmercantil-public-api.md) · [All operations](https://skmtc.dev/openmercantil/apis/openmercantil-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openmercantil/openmercantil-public-api/revisions/601ff6123c86/schema)
