Node.js
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.topics.update(
'b6d24b8e-af0b-4c3c-be0c-359bbd97381e',
{
name: 'Weekly Newsletter',
description: 'Weekly newsletter for our subscribers',
},
);
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.topics.update(
'b6d24b8e-af0b-4c3c-be0c-359bbd97381e',
{
name: 'Weekly Newsletter',
description: 'Weekly newsletter for our subscribers',
},
);
{
"object": "topic",
"id": "b6d24b8e-af0b-4c3c-be0c-359bbd97381e"
}
Node.js
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.topics.update(
'b6d24b8e-af0b-4c3c-be0c-359bbd97381e',
{
name: 'Weekly Newsletter',
description: 'Weekly newsletter for our subscribers',
},
);
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.topics.update(
'b6d24b8e-af0b-4c3c-be0c-359bbd97381e',
{
name: 'Weekly Newsletter',
description: 'Weekly newsletter for our subscribers',
},
);
{
"object": "topic",
"id": "b6d24b8e-af0b-4c3c-be0c-359bbd97381e"
}
Documentation Index
Fetch the complete documentation index at: https://resend.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Path Parameters
Body Parameters
The topic name. Max length is 50 characters.
The topic description. Max length is 200 characters.
The visibility of the topic on the unsubscribe page. Possible values: public or private.
private: only contacts who are opted in to the topic can see it on the unsubscribe page.public: all contacts can see the topic on the unsubscribe page.