Update a Geofence

Client Parameters

Response Example

Success (200)

{
  "meta": {
    "code": 200,
    "requestId": "5cab901e4c1f6715dfb6dee7"
  },
  "notifications": [
    {
      "type": "notificationTray",
      "item": {
        "unreadCount": 0
      }
    }
  ],
  "response": {
    "geofence": {
      "type": "LatLng",
      "name": "My Custom Location",
      "id": "5cab901ebfc6d0002ce1ff33",
      "boundary": {
        "center": {
          "lat": 40.7435179,
          "lng": -73.988242149
        },
        "radius": 100
      },
      "dwellTime": 2
    }
  }
}

Error (400)

{
  "meta": {
    "code": 400,
    "requestId": "Error_Request_ID"
  },
  "notifications": [],
  "response": {}
}

cURL Example

curl --request POST \
     --url https://api.foursquare.com/v2/apps/client_id/geofence/geofence_id/update \
     --header 'accept: application/json'