import Courier from '@trycourier/courier';
const client = new Courier({
apiKey: process.env['COURIER_API_KEY'], // This is the default and can be omitted
});
const check = await client.notifications.checks.update('submissionId', {
id: 'id',
checks: [{ id: 'id', status: 'RESOLVED', type: 'custom' }],
});
console.log(check.checks);{
"checks": [
{
"id": "<string>",
"status": "RESOLVED",
"type": "custom",
"updated": 123
}
]
}import Courier from '@trycourier/courier';
const client = new Courier({
apiKey: process.env['COURIER_API_KEY'], // This is the default and can be omitted
});
const check = await client.notifications.checks.update('submissionId', {
id: 'id',
checks: [{ id: 'id', status: 'RESOLVED', type: 'custom' }],
});
console.log(check.checks);{
"checks": [
{
"id": "<string>",
"status": "RESOLVED",
"type": "custom",
"updated": 123
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Show child attributes
Show child attributes