Skip to main content

Create event

POST 

/events

Create an event

It is important to note that the default events listed here cannot be overridden or modified by the user. However, to enable the management of custom events without conflicts with native ones, Teyuto uses parameters named 'custom_{type}' through APIs. These parameters allow developers to create and manage custom events, providing flexibility and adaptability to specific needs without interfering with the logic of default events.

Request

Header Parameters

    Content-Type stringrequired
    Example: application/x-www-form-urlencoded
    Accept stringrequired
    Example: application/json

Body

    type stringrequired

    Event type

    Example: custom_event
    properties stringrequired

    Event properties in json format

    Example: {"id":12345,"seconds":0}
    rating stringrequired

    A value between -1 and 1 based on the importance of the event, this value is used to train the AI. -1 indicates a very negative event, 1 indicates a very positive event.

    Example: 1
    date_created stringrequired

    YYYY-MM-DDTHH:mm:ss (ISO 8601 format) example: 2023-01-01 12:00:00

    Example: 2024-05-20 12:32:54

Responses

Response Headers

    Schema

      status stringrequired
      id stringrequired
    Loading...