import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.contactProperties.update({
id: 'b6d24b8e-af0b-4c3c-be0c-359bbd97381e',
fallbackValue: 'Example Company',
});
{
"object": "contact_property",
"id": "b6d24b8e-af0b-4c3c-be0c-359bbd97381e"
}
Update an existing contact property.
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.contactProperties.update({
id: 'b6d24b8e-af0b-4c3c-be0c-359bbd97381e',
fallbackValue: 'Example Company',
});
{
"object": "contact_property",
"id": "b6d24b8e-af0b-4c3c-be0c-359bbd97381e"
}
key and type fields cannot be changed after creation. This preserves
data integrity for existing contact values.import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.contactProperties.update({
id: 'b6d24b8e-af0b-4c3c-be0c-359bbd97381e',
fallbackValue: 'Example Company',
});
{
"object": "contact_property",
"id": "b6d24b8e-af0b-4c3c-be0c-359bbd97381e"
}
Was this page helpful?