Node.js
import { Rewrite } from '@rewritetoday/sdk';
const rewrite = new Rewrite(process.env.REWRITE_API_KEY!);
const { error } = await rewrite.contacts.removeTags(
'748395130237498515',
{ ids: ['748395130237498570'] },
);
if (error) throw error;{
"ok": true,
"data": null
}Contacts
Detach tags from a contact
Detach between 1 and 15 existing tags from one contact.
DELETE
/
contacts
/
{id}
/
tags
Node.js
import { Rewrite } from '@rewritetoday/sdk';
const rewrite = new Rewrite(process.env.REWRITE_API_KEY!);
const { error } = await rewrite.contacts.removeTags(
'748395130237498515',
{ ids: ['748395130237498570'] },
);
if (error) throw error;{
"ok": true,
"data": null
}Authorizations
Send your API key as Authorization: Bearer rw_....
Required scope: project:write.
Path Parameters
Contact identifier returned by Rewrite.
Example:
"748395130237498412"
Body
application/json
Required array length:
1 - 15 elementsExample:
["748395130237498570"]