---
title: "Edit a visit note"
description: "Only the author can edit. The /rep/ alias is /api/field-sales/rep/appointments/{id}/notes/{noteId}. Metadata is read and merged; source and kind are kept."
---

> Documentation Index
> Fetch the complete documentation index at: https://developer.channelautomations.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Channel Automation API › Conversations

`PATCH /api/field-sales/appointments/{id}/notes/{noteId}`

Only the author can edit. The /rep/ alias is /api/field-sales/rep/appointments/{id}/notes/{noteId}. Metadata is read and merged; source and kind are kept.

## Authentication

- `BearerAuth`, http, header `Authorization`, format `JWT`

## Path parameters

- `id` (`patch/api/field-sales/appointments/id/notes/noteId.path.id`; string, required)
  - format `uuid`
- `noteId` (`patch/api/field-sales/appointments/id/notes/noteId.path.noteId`; string, required)
  - format `uuid`

## Request body

_Required._

- `body` (`patch/api/field-sales/appointments/id/notes/noteId.body`; string, required)
  - minLength 1; maxLength 2000

## Example request

```json
{
  "body": "string"
}
```

## Code samples

### cURL

```bash
curl --request PATCH \
  --url 'https://api.channelautomation.com/api/field-sales/appointments/<id>/notes/<noteId>' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "body": "string"
}
'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/field-sales/appointments/<id>/notes/<noteId>';
const options = {
  method: 'PATCH',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({body: 'string'})
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.channelautomation.com/api/field-sales/appointments/<id>/notes/<noteId>"

payload = { "body": "string" }
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

{ success, note }

### 403

Caller is not the author

### 404

Note is missing


Source: https://developer.channelautomations.com/api/patch-api-field-sales-appointments-id-notes-note-id/index.md
