---
title: "Create a new collector group"
method: POST
path: "/collectorGroups"
tags: ["collectorGroups"]
---

# Create a new collector group

`POST /collectorGroups`

Create a new collector group if all the collectors aren't already assigned to a different group.

## Request body

- object — Create a collector group.
  - `description` string — A description of the collector group.
  - `name` string, required — A unique and descriptive name for the collector group.
  - `collectors` string[] — List of collectors for the group.
  - `generators` string[] — List of generators assigned to this group.
  - `owner` string — The name of the user to assign as the owner. Defaults to the user that created it

## Response `201`

Created.

- CollectorGroupsResponse — The group of collectors
  - `description` string — A description of the collector group.
  - `createdBy` string — Id of the user who created the collector group.
  - `id` string — The collector group id.
  - `name` string — The collector group name.
  - `collectors` object[] — List of collectors for the group.

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `default` — Error

## Changes

- **2019-01-02** (v1) `98e13120b015` — 1 info
  - api operation id `createCollectorGroups` removed and replaced with `createCollectorGroup`
- **2018-11-28** (v1) `9ce34af61f18` — 1 info
  - endpoint added
- **2018-03-30** (v1) `4ca6b20ef8df` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/salesforce/apis/refocus-api/changes/collectorGroups/post.md)

---

[API](https://skmtc.dev/salesforce/apis/refocus-api.md) · [All operations](https://skmtc.dev/salesforce/apis/refocus-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/salesforce/refocus-api/revisions/42c2153b047e/schema)
