# Update Message Note

`PATCH https://api.inboxjot.com/v1/messages/{message_id}/notes/{note_id}`

Changes the text of a note that the API wrote. Needs a Full key. A key limited to one domain answers 403. Send an optional `Idempotency-Key` header to retry safely. See Idempotency.

## Path Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `message_id` | string | Yes | The message id. |
| `note_id` | string | Yes | The note id. |

## Body Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `body` | string | Yes | The note text, from 1 to 5000 characters. |

## Response

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | No | The note id. |
| `body` | string | No | The note text. |
| `author` | object \| null | No | The team member who wrote it, in the dashboard or through an OAuth app. `null` when an API key or a removed user wrote it. |
| `author.id` | string | No | The user id. |
| `author.name` | string | No | The user name. |
| `author.email` | string | No | The user email address. |
| `api_key` | object \| null | No | The API key that wrote it, or `null` when a team member wrote it. |
| `api_key.id` | string | No | The API key id. |
| `api_key.name` | string | No | The API key name. Empty when the key was deleted. |
| `created_at` | string | No | When it was written. |
| `updated_at` | string | No | When it was last changed. |

## Request

cURL:

```bash
curl -X PATCH https://api.inboxjot.com/v1/messages/msg_06d2mfk8r4tq9xv2bnc7s/notes/mnt_06d2mfk8r4tq9xv2bnc7s \
  -H "Authorization: Bearer $INBOXJOT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "body": "Refund sent."
  }'
```

## Responses

| Status | Description |
| --- | --- |
| 200 | Changed the note. |
| 400 | The body is empty or over 5000 characters. |
| 401 | The API key is missing, revoked or expired. |
| 403 | A team member wrote the note. The API can change only notes it wrote. |
| 404 | The message or the note does not exist. |
| 409 | A request with the same Idempotency-Key is still running. Retry after one second. |
| 413 | The body is larger than 2 MB. |
| 415 | The Content-Type header is not application/json. |
| 422 | The Idempotency-Key was already used with a different request. |
| 429 | Too many requests for this key. Wait for the seconds in the Retry-After header. |
| 500 | Something failed on our side. Retry later. |

200:

```json
{
  "id": "mnt_06d2mfk8r4tq9xv2bnc7s",
  "body": "Refund sent.",
  "author": null,
  "api_key": {
    "id": "key_06d2mfk8r1hq7vx3bn4ka",
    "name": "Production"
  },
  "created_at": "2026-11-20T09:20:00.000Z",
  "updated_at": "2026-11-20T09:31:00.000Z"
}
```

400:

```json
{
  "name": "validation_error",
  "status": 400,
  "message": "length is lower than 1",
  "errors": [
    {
      "message": "length is lower than 1",
      "location": "body"
    }
  ],
  "request_id": "5f0c6a2e-8d1b-4c7a-9e3f-2b6d4a1c8e90"
}
```

401:

```json
{
  "name": "unauthorized",
  "status": 401,
  "message": "Unauthorized",
  "errors": [],
  "request_id": "5f0c6a2e-8d1b-4c7a-9e3f-2b6d4a1c8e90"
}
```

403:

```json
{
  "name": "forbidden",
  "status": 403,
  "message": "Only the author can edit a note",
  "errors": [],
  "request_id": "5f0c6a2e-8d1b-4c7a-9e3f-2b6d4a1c8e90"
}
```

404:

```json
{
  "name": "not_found",
  "status": 404,
  "message": "Note not found",
  "errors": [],
  "request_id": "5f0c6a2e-8d1b-4c7a-9e3f-2b6d4a1c8e90"
}
```

409:

```json
{
  "name": "concurrent_idempotent_requests",
  "status": 409,
  "message": "A request with this idempotency key is still in progress. Try again later.",
  "errors": [],
  "request_id": "5f0c6a2e-8d1b-4c7a-9e3f-2b6d4a1c8e90"
}
```

413:

```json
{
  "name": "payload_too_large",
  "status": 413,
  "message": "The request body is too large",
  "errors": [],
  "request_id": "5f0c6a2e-8d1b-4c7a-9e3f-2b6d4a1c8e90"
}
```

415:

```json
{
  "name": "unsupported_media_type",
  "status": 415,
  "message": "The Content-Type must be application/json",
  "errors": [],
  "request_id": "5f0c6a2e-8d1b-4c7a-9e3f-2b6d4a1c8e90"
}
```

422:

```json
{
  "name": "invalid_idempotent_request",
  "status": 422,
  "message": "This idempotency key was already used with a different request",
  "errors": [],
  "request_id": "5f0c6a2e-8d1b-4c7a-9e3f-2b6d4a1c8e90"
}
```

429:

```json
{
  "name": "rate_limit_exceeded",
  "status": 429,
  "message": "Too many attempts. Try again later.",
  "errors": [],
  "request_id": "5f0c6a2e-8d1b-4c7a-9e3f-2b6d4a1c8e90"
}
```

500:

```json
{
  "name": "unknown_error",
  "status": 500,
  "message": "Something went wrong. Please try again later.",
  "errors": [],
  "request_id": "5f0c6a2e-8d1b-4c7a-9e3f-2b6d4a1c8e90"
}
```
