Create Event Type
POST {{baseUrl}}/api/v1/event-type
Create new or unarchive existing event type.
Unarchiving an event type will allow endpoints to filter on it and messages to be sent with it. Endpoints filtering on the event type before archival will continue to filter on it. This operation does not preserve the description and schemas.
Request Body
{"description"=>"<string>", "name"=>"<string>", "archived"=>false, "schemas"=>{"minim_914"=>"<object>", "incididunt_"=>"<object>"}, "featureFlag"=>"<string>"}
HEADERS
| Key | Datatype | Required | Description |
| idempotency-key
| string | | The request's idempotency key |
| Content-Type
| string | | |
| Accept
| string | | |
RESPONSES
status: Created
{"createdAt":"2001-11-18T21:36:45.749Z","description":"A user has signed up","name":"user.signup","updatedAt":"2003-10-27T07:53:05.557Z","archived":false,"schemas":{"1":{"description":"An invoice was paid by a user","properties":{"invoiceId":{"description":"The invoice id","type":"string"},"userId":{"description":"The user id","type":"string"}},"required":["invoiceId","userId"],"title":"Invoice Paid Event","type":"object"}},"featureFlag":"cool-new-feature"}