---
title: "Assign a geofence to a group"
url: "https://developers.vzconnect.com/apis/verizon-connect-api/versions/50310ce9-d69d-4329-ac0b-f98a90ed73e2/operations/POST__groups__groupid__geofences"
---

> Full API specification: https://developers.vzconnect.com/apis/verizon-connect-api/versions/50310ce9-d69d-4329-ac0b-f98a90ed73e2.md

# Assign a geofence to a group

`POST` `/cmd/v1/groups/{groupid}/geofences`

Operation ID: `POST__groups__groupid__geofences`

## Before you start Before you make your first API call, make sure you have the following: - Your Verizon Connect account manager or administrator has requested a Client ID and Client Secret for your integration in Reveal Marketplace. - You have the Client ID and Client Secret for your integration. - Get an access token using your Client ID and Client Secret. For instructions, read [get your token](/apis/verizon-connect-api/versions/50310ce9-d69d-4329-ac0b-f98a90ed73e2/operations/getToken). > If you are maintaining an existing integration configured before **November 27, 2026** using an **App ID** and **legacy credentials**, follow the [Call the APIs with legacy credentials Guide](/guides/legacy). ## Purpose Add a geofence to a specific Group ID. The Place ID is supplied in the body and the Group ID in the path. Geofences can be assigned to multiple groups; adding a geofence to a group does not remove it from another group. POST methods do not return an object review, only a standard HTTP code.

## Path parameters

- `groupid` (string, required) - The Group ID, the unique alphanumeric identifier associated with the group created within the REVEAL account. Must be unique within the account.

## Request body (required)

Content types: `application/json`

## Responses

- `204` - Successfully assigned the geofence to the group.
- `400` - Bad request. The request body is missing or invalid, or no group was found for the given Group ID. Validation errors are returned as an array of objects with Name and Message.
- `401` - Unauthorized. The request lacks valid authentication credentials.
- `404` - The specified geofence was not found.
- `500` - Internal server error. An unexpected error occurred on the server.

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: Verizon Connect API
  version: 1.0.0
servers:
  - url: https://api.us.vzconnect.com
paths:
  /cmd/v1/groups/{groupid}/geofences:
    post:
      tags:
        - Group API
      summary: Assign a geofence to a group
      description: |-
        ## Before you start

        Before you make your first API call, make sure you have the following:

        - Your Verizon Connect account manager or administrator has requested a Client ID and Client Secret for your integration in Reveal Marketplace.
        - You have the Client ID and Client Secret for your integration.
        - Get an access token using your Client ID and Client Secret. For instructions, read [get your token](/apis/verizon-connect-api/versions/50310ce9-d69d-4329-ac0b-f98a90ed73e2/operations/getToken).

        > If you are maintaining an existing integration configured before **November 27, 2026** using an **App ID** and **legacy credentials**, follow the [Call the APIs with legacy credentials Guide](/guides/legacy).

        ## Purpose

        Add a geofence to a specific Group ID. The Place ID is supplied in the body and the Group ID in the path. Geofences can be assigned to multiple groups; adding a geofence to a group does not remove it from another group. POST methods do not return an object review, only a standard HTTP code.
      parameters:
        - schema:
            type: string
            example: CPTG1
          name: groupid
          in: path
          required: true
          description: The Group ID, the unique alphanumeric identifier associated with
            the group created within the REVEAL account. Must be unique within
            the account.
      requestBody:
        description: The place ID of the geofence to assign to the group.
        content:
          application/json:
            schema:
              type: object
              description: Request body to add a geofence to a Group ID.
              required:
                - PlaceId
              properties:
                PlaceId:
                  type: string
                  description: Place ID is a unique value within a REVEAL account that is used to
                    identify a Geofence. To use the Geospatial API the Place ID
                    is a mandatory field. The Place ID can be NULL for a
                    returned Geofence.
                  example: WCB-Circle-151112-1
              title: PlaceIdBody
            example:
              PlaceId: WCB-Circle-151112-1
        required: true
      operationId: POST__groups__groupid__geofences
      responses:
        "204":
          description: Successfully assigned the geofence to the group.
          content:
            application/json: {}
        "400":
          description: Bad request. The request body is missing or invalid, or no group
            was found for the given Group ID. Validation errors are returned as
            an array of objects with Name and Message.
          content:
            application/json:
              schema:
                type: object
                description: Generic error response. The documentation does not define an
                  explicit error body schema.
                properties:
                  Message:
                    type: string
                    description: A human-readable description of the error.
                title: Error
        "401":
          description: Unauthorized. The request lacks valid authentication credentials.
          content:
            application/json:
              schema:
                type: object
                description: Generic error response. The documentation does not define an
                  explicit error body schema.
                properties:
                  Message:
                    type: string
                    description: A human-readable description of the error.
                title: Error
        "404":
          description: The specified geofence was not found.
          content:
            application/json:
              schema:
                type: object
                description: Generic error response. The documentation does not define an
                  explicit error body schema.
                properties:
                  Message:
                    type: string
                    description: A human-readable description of the error.
                title: Error
        "500":
          description: Internal server error. An unexpected error occurred on the server.
          content:
            application/json:
              schema:
                type: object
                description: Generic error response. The documentation does not define an
                  explicit error body schema.
                properties:
                  Message:
                    type: string
                    description: A human-readable description of the error.
                title: Error
      deprecated: false
      x-kong-route-defaults:
        strip_path: false
        paths:
          - ~/cmd/v1/groups/[^/]+/geofences/?$
```
