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
- application/x-www-form-urlencoded
Body
Event type
custom_event
Event properties in json format
{"id":12345,"seconds":0}
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.
1
YYYY-MM-DDTHH:mm:ss (ISO 8601 format) example: 2023-01-01 12:00:00
2024-05-20 12:32:54
Responses
- 200
- 400
- 401
Response Headers
- application/json
- Schema
- Example (from schema)
- 1
Schema
{
"status": "string",
"id": "string"
}
OK
{
"status": "<string>",
"id": "<string>"
}
Response Headers
- application/json
- Schema
- Example (from schema)
- 1
Schema
{
"status": "string"
}
Bad Request
{
"status": "<string>"
}
Response Headers
- application/json
- Schema
- Example (from schema)
- 1
Schema
{
"status": "string"
}
Unauthorized
{
"status": "<string>"
}