---
title: "Create geofence collection"
method: POST
path: "/v1/geofence-collection"
tags: ["Geofence Collection"]
---

# Create geofence collection

`POST /v1/geofence-collection`

## Request

- Base URL: `https://api.stellantis-developers.com`
- URL: `https://api.stellantis-developers.com/v1/geofence-collection`
- Auth: API key in header `x-api-key` and API key in header `Authorization`
- TypeScript: <https://skmtc.dev/stellantis/apis/stellantis-connected-vehicle-api/docs/v1/geofence-collection/post.ts> (a function with typed inputs; its response is checked against the schema)

Create a geofence collection by providing fields named collection_name and entries. The geofence collection geometry may be one of Polygon or Circle.

## Request body

- CreateGeofenceCollectionRequest
  - `collection_name` string, required
  - `entries` Entry[]
    - `GeofenceId` string, required
    - `Geometry` Geometry, required
      - `Polygon` array[], required
        - array[]
          - number[]

## Response `200`

CreateGeofenceCollectionResponse

- string

## Other responses

- `400`: bad input parameter
- `403`: not authorized
- `500`: internal server error

---

[API](https://skmtc.dev/stellantis/apis/stellantis-connected-vehicle-api.md) - [All operations](https://skmtc.dev/stellantis/apis/stellantis-connected-vehicle-api/llms.txt) - [OpenAPI document](https://skmtc.dev/stellantis/apis/stellantis-connected-vehicle-api/revisions/1d2213b04fdb?raw)
