Create

post
Create Event

https://YOUR-CONTAINER.datumfactory.com/api/v1/events
This endpoint creates an Event. The, title, slug, and data fields are required. The data field is where you can record custom properties. Examples of this include: One property, one value: {"product_id":"23"} Multiple values for one property: {"tags":"one, two"} Multiple properties and values: {"product_id":"34", "visit_id":"634"}
Request
Response
Request
Headers
Authorization
required
string
Authentication token.
Form Data Parameters
data
required
array
Custom properties hash.
description
optional
string
Optional description of event.
title
required
string
Human readable version of the event.
slug
required
string
The event slug.
Response
200: OK
Event successfully created.
{
"id": 48,
"site_id": 1,
"title": "added-to-cart",
"description": "testing",
"data": {
"product_id": "78"
},
"created_at": "2019-09-15T15:14:54.707-05:00",
"updated_at": "2019-09-15T15:14:54.707-05:00",
"slug": "added-to-cart"
}

‚Äč