---
title: "Apply geofences."
method: GET
path: "/project/apply_geofence"
tags: ["Projects|Project"]
---

# Apply geofences.

`GET /project/apply_geofence`

This feature allows you to retroactively assign events such as trips, stops, operating hours, check-ins, etc., to a new or modified project based on GPS location.
You should use this feature if a new project was created late or if a project’s geofence has changed.

## Query parameters

- `projectFilter[byIds][]` integer[]
- `projectFilter[byReferences][]` string[]
- `projectFilter[byImportKeys][]` string[]
- `projectFilter[importSource]` string
- `projectFilter[from]` string

## Response `200`

Success Response:

- StandardProjectApplyGeofenceResponse
  - `appliedProjects` object[] — The projects where the geofences were applied.
    - `id` integer — The internal project ID.
    - `reference` string — The project number.
    - `importSource` string — External data source from which this project originated.
    - `importKey` string — External ID from the respective data source.
    - `numStamps` integer — The number of changed stamps.
    - `numEvents` integer — The number of changed events.
    - `numBeacons` integer — The number of changed beacons.

---

[API](https://skmtc.net/geocapture/apis/geocapture-api.md) · [All operations](https://skmtc.net/geocapture/apis/geocapture-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/geocapture/geocapture-api/revisions/15839b24c497/schema)
