---
title: "Create geofences"
method: POST
path: "/time-clock/v1/time-clocks/{timeClockId}/geofences"
tags: ["Time Clock:v1:TimeClocks:TimeClock:GeoFences"]
---

# Create geofences

`POST /time-clock/v1/time-clocks/{timeClockId}/geofences`

Create new geofences site under a specified time clock. The geofence can be associated with multiple job IDs that are assigned to the time clock only

## Path parameters

- `timeClockId` integer, required — The unique identifier of the time clock

## Request body

- GeoFencesCreateRequest
  - `geofences` GeoFenceEntity[], required — List of geo fences to create
    - `name` string, required — The name of the geofence
    - `isEnabled` boolean — Indicates whether the geofence is enabled upon creation
    - `fenceSize` integer — The radius size (in meters) of the geofence. Must be a value between 75-1524 meters
    - `jobIds` string[] — List of job IDs to apply the geofence. If the job contains sub-jobs, pass only the parent job ID. If jobs are not required in the account settings, pass an empty array.(It is empty by default)
    - `onGeofenceExitAction` 'noAction' | 'sendNotification' | 'autoClockOut' — An enumeration.
    - `location` GpsLocation, required
      - `address` string, required — address
      - `latitude` string, required — latitude, number format
      - `longitude` string, required — longitude, number format

## Response `200`

Successful Response

- APIResponseGeoFencesCreatedResponse
  - `requestId` string
  - `data` GeoFencesCreatedResponse, required
    - `geofences` GeoFenceCreatedEntity[], required — Geofences list
      - `fenceId` string, required — Geo fence resource ID
      - `name` string, required — Geo fence name

## Other responses

- `422` — Validation Error

---

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