POST
/
sites
/
{site_id}
/
events
/
{event_id}
Update an event
curl --request POST \
  --url https://api.usefathom.com/v1/sites/{site_id}/events/{event_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>"
}'
{
  "id": "signed-up-to-newsletter",
  "object": "event",
  "name": "Signed up to newsletter",
  "site_id": "CDBUGS",
  "created_at": "2023-11-07T05:31:56Z"
}

Update an event

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

site_id
string
required

The ID of the site you wish to load. This is the same string you use in the tracking code.

event_id
string
required

The ID of the event you wish to track. You have to create this event first before sending us completions.

Body

application/json

Response

200 - application/json

Updated event

The response is of type object.