Create new event type

POST {{baseUrl}}/eventTypes?includeShared=false

Creates an event type with the provided content. - Default id is generated UUID. If id is provided then it has to be prefixed with the current tenant and has to be followed by a dot. - Default parentId is BaseEvent - Default ttl value is 35 - Default scope is LOCAL - Default filterable value for a field is false - Default required value for a field is false - Default updatable value for a field is true - Clients must provide values field in case of ENUM type and must not provide in case of any other field type.

\ !Restriction! - After successful response, it may take 100ms to make it visible to the user.

Request Params

KeyDatatypeRequiredDescription
includeSharedbooleanTo specify if received event or eventTypes should be consider for the API operation.

Request Body

{"name"=>"<string>", "fields"=>[{"name"=>"<string>", "type"=>"<string>", "filterable"=>false, "required"=>false, "updatable"=>false, "values"=>["<string>", "<string>"]}, {"name"=>"<string>", "type"=>"<string>", "filterable"=>false, "required"=>false, "updatable"=>false, "values"=>["<string>", "<string>"]}], "id"=>"<string>", "parentId"=>"<string>", "ttl"=>"<integer>", "scope"=>"LOCAL"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;id&quot;:&quot;nisi sed&quot;,&quot;name&quot;:&quot;paria&quot;,&quot;parentId&quot;:&quot;culpa Excepteur dolor quis reprehenderit&quot;,&quot;ttl&quot;:27250153,&quot;etag&quot;:78795105,&quot;owner&quot;:&quot;irure consequat&quot;,&quot;scope&quot;:&quot;LOCAL&quot;,&quot;fields&quot;:[{&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;filterable&quot;:false,&quot;required&quot;:false,&quot;updatable&quot;:false,&quot;values&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;]},{&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;filterable&quot;:false,&quot;required&quot;:false,&quot;updatable&quot;:false,&quot;values&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;]}],&quot;_links&quot;:{&quot;self&quot;:{&quot;href&quot;:&quot;http://NgSQUxvMdT.uct6kPX1hVM.mKw0U1fMoQENtV-qyA,uil5uy+fk93k.c2t&quot;},&quot;events&quot;:{&quot;href&quot;:&quot;https://EiGFPDY.wcprhvvwoU6pmG&quot;}},&quot;sharing&quot;:{&quot;modes&quot;:[&quot;SHARER&quot;,&quot;DEFAULT&quot;]}}