Python examples
Write Event Property Data
create manual entry this code creates a manual data point on an existing event property ( my swagger ) the following script requires an eventuuid, eventconfigurationuuid and eventtypepropertyuuid to be filled in the event uuid and event configuration uuid can be retrieved by query event data docid\ khpjujdtdqy0189xxhan3 the event type property uuid can be retrieved either programatically or via the webpage note that the value may need surrounding " depending on the datatype of the event property you're writing to for a numeric property do not use surrounding " e g "value" 10 0 for a string/boolean property use surrounding " e g "value" "xyz237" post post https //historian mycompany com 18000/api/manual entries def create manual entry(value, event configuration uuid, event type property uuid, event uuid, completed) payload = { "value" value, "eventconfigurationuuid" event configuration uuid, "eventtypepropertyuuid" event type property uuid, "eventuuid" event uuid, "completed" completed, "time" "2025 09 23t11 30 00 000z" } resp = session post(f"{base url}/manual entries", json=payload, timeout=30) resp raise for status() return resp json() new manual entry = create manual entry("mymanualvalue", "my event configuration uuid", "my event type property uuid", "my event uuid", true) print(json dumps(new manual entry, indent=2)) sucessful response { "uuid" "f6d11318 9872 11f0 8732 ca980df018c1", "createdby" "6c8ef372 5c29 11ef 9e88 0242ac12000a", "created" { "uuid" "6c8ef372 5c29 11ef 9e88 0242ac12000a", "createdby" null, "createdat" "0001 01 01t00 00 00z", "updatedby" "6c8ef372 5c29 11ef 9e88 0242ac12000a", "updatedat" "2024 12 12t22 52 30 304454z", "attributes" { "description" "default factry user", "email" "", "experimentalfeatures" true, "firstname" "", "lastname" "", "locale" "en" }, "metadata" {}, "name" "factry", "status" "active", "issystem" false }, "createdat" "2025 09 23t11 46 38 307226z", "updatedby" "6c8ef372 5c29 11ef 9e88 0242ac12000a", "updatedat" "2025 09 23t11 46 38 307226z", "attributes" {}, "metadata" {}, "organizationuuid" "fbf184b2 5c29 11ef 8bf9 0242ac12000a", "oldvalue" "myoldvalue", "value" "mymanualvalue", "time" "2025 09 23t11 30 00z", "completed" true, "eventtypepropertyuuid" "90350376 72d9 11f0 84f9 2ab625e33347", "eventuuid" "a2a9c620 8e51 11f0 b62a 02cba4236809", "eventconfigurationuuid" "267d7cba 4647 11f0 9122 4672b84d43fa" }