# Update a user note

`PATCH https://api.cademi.com.br/api/v3/users/{user_id}/notes/{note_id}`

Operation ID: `users.notes.update` · API v3

Updates the body of an internal note. Only the author of the note, whether an administrator or the credential that created it, can edit it; other callers receive `permission_denied`.

Required permissions: `users.update`.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `user_id` | path | string | yes |  |
| `note_id` | path | string | yes |  |

## Request body

Content type: `application/json`, required.

| Field | Type | Required | Description |
|---|---|---|---|
| `body` | string | yes |  |

## Responses

### 200

Returns the updated note.

Body: `data`: UserNote.

Fields of UserNote:

| Field | Type | Required | Description |
|---|---|---|---|
| `author` | object | yes |  |
| `body` | string | yes |  |
| `created_at` | string (date-time) | yes |  |
| `id` | string | yes |  |
| `object` | string, one of `user_note` | yes |  |
| `updated_at` | string or null (date-time) | no |  |

### 401

The credential is missing, malformed, expired, or revoked.

Body: Error.

### 403

The current credentials do not have the permission required by this operation.

Body: Error.

### 404

The note was not found or is not accessible with the current credentials.

Body: Error.

### 422

The request body or query parameters failed validation.

Body: ValidationFailed.

Full schema: https://cademi.dev/openapi/v3.json
