Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.chamelio.ai/llms.txt

Use this file to discover all available pages before exploring further.

Event

core.document.updated
This event fires when a document’s metadata attributes are modified — either via the Update File Attributes API or through the Chamelio web application.

Payload Example

{
  "event": "core.document.updated",
  "event_id": "evt_01HXYZ3344556677",
  "organization_id": "org_abc123",
  "timestamp": "2025-06-02T09:15:30Z",
  "data": {
    "file_id": "file_abc123",
    "file_name": "master_services_agreement.pdf",
    "updated_by": "jane.smith@example.com",
    "updated_attributes": [
      {
        "name": "contract_value",
        "data_type": "number",
        "previous_value": "250000",
        "new_value": "300000"
      },
      {
        "name": "auto_renew",
        "data_type": "boolean",
        "previous_value": "true",
        "new_value": "false"
      }
    ]
  }
}

Payload Fields

Envelope

FieldTypeDescription
eventstringAlways core.document.updated
event_idstringUnique delivery ID — use to deduplicate retries
organization_idstringID of the organization that owns the document
timestampstringISO 8601 UTC timestamp of the event
dataobjectEvent-specific payload (see below)

Data Object

FieldTypeDescription
file_idstringUnique identifier of the updated document
file_namestringName of the document
updated_bystringEmail of the user who made the change
updated_attributesarrayList of attributes that changed (see below)

Updated Attribute Object

FieldTypeDescription
namestringName of the attribute that changed
data_typestringAttribute data type
previous_valuestringValue before the update (null if the attribute is new)
new_valuestringValue after the update