Skip to main content
PUT
/
tags
/
{id}
JavaScript
import Codeqr from '@codeqr/ts';

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

const tag = await client.tags.update('id', { name: 'x' });

console.log(tag.id);
{
  "id": "<string>",
  "name": "<string>",
  "color": "red"
}

Documentation Index

Fetch the complete documentation index at: https://docs.codeqr.io/llms.txt

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

Authorizations

Authorization
string
header
required

Default authentication mechanism

Path Parameters

id
string
required

The ID of the tag to update.

Body

application/json
name
string
required
Minimum string length: 1
color
enum<string>

The color of the tag

Available options:
red,
yellow,
green,
blue,
purple,
pink,
brown

Response

The updated tag.

id
string
required

The unique ID of the tag.

name
string
required

The name of the tag.

color
enum<string>
required

The color of the tag.

Available options:
red,
yellow,
green,
blue,
purple,
pink,
brown