Skip to main content
DELETE
/
preferences
/
sections
/
{section_id}
/
topics
/
{topic_id}
JavaScript
import Courier from '@trycourier/courier';

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

await client.preferenceSections.topics.archive('topic_id', { section_id: 'section_id' });
{
  "message": "<string>",
  "type": "invalid_request_error"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

section_id
string
required

Id of the preference section.

topic_id
string
required

Id of the subscription preference topic.

Response

Successfully archived.