Skip to main content
PUT
/
notifications
/
{id}
/
{submissionId}
/
checks
JavaScript
import Courier from '@trycourier/courier';

const client = new Courier({
  apiKey: 'My API Key',
});

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
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required
submissionId
string
required

Body

application/json
checks
BaseCheck · object[]
required

Response

200 - application/json
checks
Check · object[]
required