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

KeyDatatypeRequiredDescription
idempotency-keystringThe request's idempotency key
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;createdAt&quot;:&quot;2001-11-18T21:36:45.749Z&quot;,&quot;description&quot;:&quot;A user has signed up&quot;,&quot;name&quot;:&quot;user.signup&quot;,&quot;updatedAt&quot;:&quot;2003-10-27T07:53:05.557Z&quot;,&quot;archived&quot;:false,&quot;schemas&quot;:{&quot;1&quot;:{&quot;description&quot;:&quot;An invoice was paid by a user&quot;,&quot;properties&quot;:{&quot;invoiceId&quot;:{&quot;description&quot;:&quot;The invoice id&quot;,&quot;type&quot;:&quot;string&quot;},&quot;userId&quot;:{&quot;description&quot;:&quot;The user id&quot;,&quot;type&quot;:&quot;string&quot;}},&quot;required&quot;:[&quot;invoiceId&quot;,&quot;userId&quot;],&quot;title&quot;:&quot;Invoice Paid Event&quot;,&quot;type&quot;:&quot;object&quot;}},&quot;featureFlag&quot;:&quot;cool-new-feature&quot;}