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
Key | Datatype | Required | Description |
---|---|---|---|
includeShared | boolean | To 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
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"id":"nisi sed","name":"paria","parentId":"culpa Excepteur dolor quis reprehenderit","ttl":27250153,"etag":78795105,"owner":"irure consequat","scope":"LOCAL","fields":[{"name":"\u003cstring\u003e","type":"\u003cstring\u003e","filterable":false,"required":false,"updatable":false,"values":["\u003cstring\u003e","\u003cstring\u003e"]},{"name":"\u003cstring\u003e","type":"\u003cstring\u003e","filterable":false,"required":false,"updatable":false,"values":["\u003cstring\u003e","\u003cstring\u003e"]}],"_links":{"self":{"href":"http://NgSQUxvMdT.uct6kPX1hVM.mKw0U1fMoQENtV-qyA,uil5uy+fk93k.c2t"},"events":{"href":"https://EiGFPDY.wcprhvvwoU6pmG"}},"sharing":{"modes":["SHARER","DEFAULT"]}}