Skip to content
Update a group

Update a group

Set or remove a group's display name.

PATCH/api/v1/groups/:groupId

Request#

TypeScript
const response = await fetch("https://api.smallworld.sh/api/v1/groups/team_42", {
  method: "PATCH",
  headers: { Authorization: `Bearer ${apiKey}`, "Content-Type": "application/json" },
  body: JSON.stringify({
  "name": "Customer support"
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
const result = await response.json();

Use your server-side apiKey. Replace the example IDs.

Path parameters#

groupIdstringrequired

Your application's group ID, URL-encoded. At most 512 characters, with no surrounding whitespace or null bytes.

Request body#

namestring | nullrequired

New display name, 1 to 120 characters after trimming, without control characters. null removes the name.

Responses#

Returns id (your group ID), nullable name, system, memberCount, and ISO 8601 createdAt and updatedAt timestamps. system is true only for the dashboard's Playground Group.

200 response
{
  "id": "team_42",
  "name": "Customer support",
  "system": false,
  "memberCount": 2,
  "createdAt": "2026-10-10T12:00:00.000Z",
  "updatedAt": "2026-10-10T12:00:01.000Z"
}
More about this endpoint

The group ID can't be changed. A body without name, or with any other field, is invalid.

Tool calls keep the name the group had when they were made.