PUT
/
api
/
v2
/
public
/
event
/
:event_id
curl --request PUT \
  --url https://api.gocobalt.io/api/v2/public/event/:event_id \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "name": "<string>",
  "model": {}
}'
{
    "_id": "64cb7c433c6dddda0fb6bde8",
    "event_url": "https://api.gocobalt.io/api/v1/webhook/e51e979faa1edef92d87b1d4",
    "event_name": "Create Deal",
    "event_model":{
      "customer_name": "text",
      "amount": "number",
      "emails":"array",
      "is_new": "boolean"
    }
}

This api updates a Cobalt event.

Request description

Path Parameters

event_id
string
required

Event Id

Body Parameters

name
string

Event 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