Node.js
import { Rewrite } from '@rewritetoday/sdk';
const rewrite = new Rewrite(process.env.REWRITE_API_KEY!);
const { error } = await rewrite.tags.update(
'748395130237498570',
{
color: '#EA580C',
description: 'Updated description for priority contacts.',
},
);
if (error) throw error;{
"ok": true,
"data": null
}Tags
Update a tag
Update the name, description or color of an existing tag.
PATCH
/
tags
/
{id}
Node.js
import { Rewrite } from '@rewritetoday/sdk';
const rewrite = new Rewrite(process.env.REWRITE_API_KEY!);
const { error } = await rewrite.tags.update(
'748395130237498570',
{
color: '#EA580C',
description: 'Updated description for priority contacts.',
},
);
if (error) throw error;{
"ok": true,
"data": null
}Authorizations
Send your API key as Authorization: Bearer rw_....
Required scope: project:write.
Path Parameters
Tag identifier returned by Rewrite.
Example:
"748395130237498412"
Body
application/json