PUT
/
conversations
/
{conversationId}
/
notes
/
{noteId}

Example JS Code to Update a Note

const apiUrl = 'https://api.chatvolt.ai';
const apiKey = 'YOUR_API_KEY';
const conversationId = 'YOUR_CONVERSATION_ID';
const noteId = 'YOUR_NOTE_ID';

const res = await fetch(
  `${apiUrl}/conversations/${conversationId}/notes/${noteId}`,
  {
    method: 'PUT',
    headers: {
      'Content-Type': 'application/json',
      Authorization: `Bearer ${apiKey}`,
    },
    body: JSON.stringify({
      note: 'This is the updated text.',
      isPrivate: true
    })
  }
);
const data = await res.json();
console.log(data);

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

conversationId
string
required

ID of the conversation.

noteId
string
required

ID of the note to update.

Body

application/json
note
string

Updated text content of the note.

isPrivate
boolean

Updated privacy status.

notificationDateTime
string

Updated notification date and time.

Response

200 - application/json
id
string
required
note
string
required
isPrivate
boolean
isJustification
boolean
conversationId
string
required
organizationId
string
required
userId
string
required
userEmail
string
required
notificationDateTime
string | null
sendDesktopNotification
boolean
createdAt
string
updatedAt
string