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 querying event data. 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"
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))