Skip to main content
PATCH
/
tagsets
/
{id}
JavaScript
import Moonbase from '@moonbaseai/sdk';

const client = new Moonbase({
  apiKey: process.env['MOONBASE_API_KEY'], // This is the default and can be omitted
});

const tagset = await client.tagsets.update('id', {
  description: 'Updated description',
  name: 'Customer Support',
});

console.log(tagset.id);
{
  "id": "1CLJt2v5aNd8G5SGzEaeVU",
  "type": "tagset",
  "name": "Customer Support",
  "description": "Updated description",
  "tags": [
    {
      "id": "1CLJt2v5pkpkAnvdgXfEcF",
      "type": "tag",
      "name": "Bug",
      "color": "red"
    }
  ],
  "created_at": "2025-02-17T16:00:00.000Z",
  "updated_at": "2025-02-17T16:00:00.000Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.moonbase.ai/llms.txt

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

Authorizations

Authorization
string
header
required

Your Moonbase API key.

Path Parameters

id
string
required

The ID of the tagset to update.

Body

application/json

The TagsetUpdateParams object containing the fields to update.

Parameters for updating a tagset.

name
string

The new name of the tagset.

description
string

An updated description of the tagset.

tags
TagParam · object[]

Optional full list of tags for this tagset. If provided, tags are ordered by array position.

Response

Update succeeded.

A Tagset is a collection of Tag objects whose tags can be applied to conversations, calls, and meetings.

type
string
required

String representing the object’s type. Always tagset for this object.

Allowed value: "tagset"
id
string
required

Unique identifier for the object.

name
string
required

The name of the tagset.

tags
Tag · object[]
required

A list of Tag objects belonging to this tagset.

created_at
string<date-time>
required

Time at which the object was created, as an ISO 8601 timestamp in UTC.

updated_at
string<date-time>
required

Time at which the object was last updated, as an ISO 8601 timestamp in UTC.

description
string

An optional description of the tagset's purpose.