Chats

Update a chat note

Replaces the text of an internal chat note. Any property manager may edit any note; MagicDoor records who did.

PUT
https://api.portal.magicdoor.com/company-app/chats/{chatId}/notes/{noteId}

Authorization

Authorizationstringrequired
Bearer token — Send your API token in the Authorization header as Bearer <token>. Requests without a valid token are rejected with 401 Unauthorized.

Path parameters

chatIdstringrequired

The chat the note is on.

example: 1830472847398404096
noteIdstringrequired

The note to edit.

example: 1831060455455096832

Body

application/json

bodystringrequired

The replacement text.

example: Tenant prefers afternoons. Call after 2pm.

Response

200 · The updated note.

idstring

The note.

chatIdstring

The chat the note is attached to.

kindenum<string>

note is text somebody wrote; action is a record of something that happened in the chat.

noteaction
audienceenum<string>

Who the note is for. Only propertyManager notes are returned here.

propertyManageraiOnly
authorenum<string>

Who wrote the note.

propertyManageraisystem
authorPropertyManagerIdstring

The property manager who wrote it. Absent on AI and system notes.

bodystring

The note text.

referencedEntityTypeenum<string>

The kind of record this note points at, when it points at one.

referencedEntityIdstring

The record this note points at.

editedByPropertyManagerIdstring

The property manager who last edited it. Absent if never edited.

editedAtstring · date-time

When it was last edited.

createdAtstring · date-time

When it was written.

updatedAtstring · date-time

When the row last changed.

metadataobject

Free-form key/value data stored with the note.

401 · The access token is missing, expired, or not valid.

404 · No note with that id belongs to your company.

The note must belong to the chat in the URL. A note that belongs to another chat, or one written for the AI alone, is reported as not found.