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.routingStrategies.archive('id');{
"type": "invalid_request_error",
"message": "Routing strategy rs_nonexistent not found"
}Archive a routing strategy. The strategy must not have associated notification templates. Unlink all templates before archiving.
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.routingStrategies.archive('id');{
"type": "invalid_request_error",
"message": "Routing strategy rs_nonexistent not found"
}