Design your events schema
You can create events schema using the endpoint POST /events/schema
.
Authentication
The following header is required for all API calls:
X-Manufactory-Auth
- Manufactory access token
Required keys
org_id
(required) string - Manufactory org ID.project_id
(required) number - The project ID associated with this schema.attributes
(required) object - Pairs containing attribute name and the corresponding data type. A complete list of valid data types .
Request example
{
"org_id": "xyz",
"project_id": 12345,
"attributes":{
"Event name": "TEXT",
"Event type": "TEXT",
"Made purchase": "BOOLEAN"
}
}
Response example
{
"message": "Events schema created successfully"
}
Related articles
Events > Get events schema
The events schema of a specific project can be fetched using the provided API endpoint, which requires authentication and returns the schema attributes in JSON format.
Actors > Create actors schema
This endpoint allows you to create an actors schema by specifying the required attributes and their data types.
Actors > Get actors schema
The endpoint retrieves the actors schema for a specific project, including attributes like city, country, email, and username.
Events > Delete events schema
An event schema can be deleted using the specified endpoint with the required authentication header and values.