Create event
POST
/
api
/
v2
/
public
/
application
/
event
This API creates a Cobalt event.
Request description
Body Parameters
name
string
requiredEvent Name
model
object
Event model. This model’s properties are accessed in the workflow as trigger variables.
Example payload
{
"string_field": "string",
"number_field": 12,
"array_field": ["1","2"],
"boolean_field": false
}
string_field
string
Example string
number_field
number
Example number
array_field
array
Example number
boolean_field
boolean
Example number
Response description
_id
string
Event Id
event_url
string
Event URL for triggering the event
event_name
string
Name of the event
event_model
object
Event model for Trigger payload reference