Sections ▾

PATCH ​/api​/geofences​/:id

Updates the specified geofence. The name should be url encoded if necessary.

Request

Example Request

{
  "geofence": {
    "name": "New name",
    "latitude": 1.5,
    "longitude": 1.5,
    "radius": 1000,
    "tags": [
      "foo"
    ]
  }
}

Example Parameters

Response

Example Response

{
  "id": 42,
  "name": "Home",
  "latitude": 29.763638,
  "longitude": -95.461874,
  "radius": 1000,
  "tags": [
    "office"
  ],
  "tag_string": "tag1,tag2,tag3"
}

Response Parameters

Response Codes

Successful Response Codes

Failure Response Codes