---
title: "Name a group of people the decision affects — proposed until a person decides"
method: POST
path: "/workspaces/{id}/questions/{questionId}/groups"
tags: ["model"]
---

# Name a group of people the decision affects — proposed until a person decides

`POST /workspaces/{id}/questions/{questionId}/groups`

## Request

- Base URL: `https://api.swingfactor.ai/v1`
- URL: `https://api.swingfactor.ai/v1/workspaces/{id}/questions/{questionId}/groups`
- Auth: HTTP bearer

## Path parameters

- `id` string, uuid, required
- `questionId` string, uuid, required

## Headers

- `Idempotency-Key` string

## Request body

- GroupBody
  - `label` string, required
  - `description` string

## Response `201`

The groups, with it.

- GroupList
  - `items` object[], required
    - `id` string, uuid, required
    - `label` string, required
    - `description` string, nullable
    - `position` integer, required
    - `status` 'proposed' | 'accepted' | 'rejected'
    - `drafted` boolean
    - `decidedByName` string, nullable
  - `total` integer, required
  - `offset` integer, required
  - `limit` integer, required

## Other responses

- `401`: No token, or not a valid one: `unauthorized`.
- `404`: No such question.
- `409`: The question already names that group.

---

[API](https://skmtc.dev/swingfactor/apis/swingfactor-api.md) · [All operations](https://skmtc.dev/swingfactor/apis/swingfactor-api/llms.txt) · [OpenAPI document](https://skmtc.dev/swingfactor/apis/swingfactor-api/revisions/c2fe881a39c3?raw)
