Dub icon

Dub

Interact with the Dub API

Tag → Update

AI-generated

Summary

Update a tag's color or name by ID

Inputs

  • id (required) — The ID of the tag to update
  • updateFields — Fields to update on the tag

Output shape

object

The updated tag object returned by the Dub API

Examples

Example 1: Change a tag's color to green

id: some-tag-id, updateFields: { color: green }

Example 2: Rename a tag

id: some-tag-id, updateFields: { name: new-tag-name }

Links

Discussion