---
title: "Update an authorization group"
method: PUT
path: "/groups/{id}"
tags: ["Authorization"]
---

# Update an authorization group

`PUT /groups/{id}`

## Request

- Base URL: `https://api.smokeball.com`
- URL: `https://api.smokeball.com/groups/{id}`
- Auth: API key in header `x-api-key` and API key in header `Authorization`

Updates a specified authorization group.

## Path parameters

- `id` string, required

## Request body

- UpdateGroupDto
  - `principalIds` string[], nullable: Principals that are members of the group. This can be either user ids or other group ids.

## Response `202`

When request is accepted. Returns a hypermedia 'Link' object of the authorization group to be updated.

- Link
  - `id` string, nullable
  - `href` string, nullable
  - `relation` string, nullable
  - `method` string, nullable

## Other responses

- `400`: When request is invalid.
- `404`: When authorization group does not exist

---

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