Geofence In Event

Update Geofence in event

This endpoint allows you to update a geofence in event associated to a tracker.

PATCH {baseUrl}/tracker/event/:eventId

Request Body

Field
Type
Required
Description

geofenceIds

array

Array of geofence ids.

eventNotification

object

Optional notification settings for the event.

eventNotification.acceptedMediums

array

A list of notification channels and their settings.

eventNotification.status

string

Status of the notification configuration. Accepts either "inactive" or "active"

Sample Success Data

//Sample Request Body
{
    "geofenceIds": [ "67ceebdba95c9d18a4c39333" ],
    "eventNotification": { 
      "acceptedMediums": [
        {
          "channel": "email",
          "isEnabled": true,
          "defaultEmail": [ "test@gmail.com" ]
        },
        {
          "channel": "sms",
          "isEnabled": true,
          "defaultPhone": [ "+2349088888888" ]
        },
        {
          "channel": "inApp",
          "isEnabled": false
        }
      ],
      "status": "active"
    }
}

Sample Success Response

//Sample success response
{
    "status": true,
    "message": "Tracker event successfully updated",
    "data": {}
}

Last updated