Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/ephraimduncan/minimal.so/llms.txt

Use this file to discover all available pages before exploring further.

Endpoint

group.update
Updates the name or color of an existing group.

Authentication

Requires authentication via session cookie. Users can only update groups they own.

Request

Response

Returns the updated group object.
id
string
required
Unique identifier for the group
name
string
required
Updated group name
color
string
required
Updated hex color code
userId
string
required
ID of the user who owns the group
createdAt
date
required
Timestamp when the group was created
updatedAt
date
required
Timestamp when the group was last updated

Example

import { client } from '@/lib/client';

const group = await client.group.update({
  id: "grp_123",
  name: "Development",
  color: "#10b981"
});

console.log(group);
// {
//   id: "grp_123",
//   name: "Development",
//   color: "#10b981",
//   userId: "usr_456",
//   createdAt: Date,
//   updatedAt: Date
// }

Schema

const updateGroupSchema = z.object({
  id: z.string(),
  name: z.string().optional(),
  color: z.string().optional(),
});

Source

  • Schema: lib/schema.ts:112
  • Implementation: server/procedures/bookmarks.ts:161
  • Router: server/router.ts:40

Build docs developers (and LLMs) love