Create event type
POST
https://api.flownally.com/v1/event-typesCreates a custom event type. With a payloadSchema, the payload of every event recorded
with this type must match it. A name the workspace already uses fails with 409.
Authorization
Required scopes
- event_type:create
Allowed roles
- owner
- admin
- agent
Create an event type in the workspace.
Body parameters
Send a application/json body. The body is required.
- Name
name- Type
- string
- required
- Name
description- Type
- string
- Name
payloadSchema- Type
- object
Expected payload fields of events of this type, keyed by field name. This is a simplified format, not a full JSON Schema. Each field is an object with:type(required):string,number,integer,booleanornull.format:dateordate-time, forstringfields only.nullable:trueto also acceptnull.required:falseto make the field optional. Fields are required by default.
Responses
- 201Event type createdapplication/json
- defaultErrorapplication/json
Related schemas
Generated from the API spec.