From what i can see, I'm doing it correctly:
let response = await novu.topics.removeSubscribers(topicKey, {
subscribers: [ subscriberInfo.mail ]
});
I know the topicKey and subscriberInfo.mail are correct, but it gives the following error when i try:
status code 401 at createError (/home/site/wwwroot/node_modules/axios/lib/core/createError.js:16:15) at settle (/home/site/wwwroot/node_modules/axios/lib/core/settle.js:17:12) at IncomingMessage.handleStreamEnd (/home/site/wwwroot/node_modules/axios/lib/adapters/http.js:269:11) at IncomingMessage.emit (node:events:525:35) at endReadableNT (node:internal/streams/readable:1358:12) at processTicksAndRejections (node:internal/process/task_queues:83:21) { config: { url: '/topics/tag::articles::hpv/subscribers/removal', method: 'post', data: '{"subscribers":["tim.anderson@linksbridge.com"]}
Addition works fine, and when I use postman on the API it works without a hitch.