Create Event
Changed onAdd events and their linked schemas in SuprSend
post/v1/{workspace}/event/
Request
- Base URLhttps://management-api.suprsend.com
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
workspacestring required
Workspace slug (staging, production, etc.)
Request body
Example request
{
"name": "USER_SIGNUP",
"description": "Triggered whenever a new user successfully signs up on the platform",
"payload_schema": {
"schema": "user_signup_v1",
"version_no": 1
}
}Response
Event created (or re-activated/updated if an event with the same name already exists)
object required
Changes
- breaking
response property
detaillist-of-types was widened by adding typesarray and objectto media typeapplication/jsonof response401 - breaking
removed the success response with the status
- warning
the
request property's maxLength was set to1024 - info
added the success response with the status
- breaking