CorefinityCorefinityDocs
Open the Control PanelControl Panel
Node.js · 7 of 7

Check a site's packages for updates

Answers which global packages have a newer version within their selector or beyond it, and the security advisories reported for the installed set. The check runs on the site and is recorded in its activity; nothing installed changes. The person needs to be able to change the site, although the token needs only read.

POST/api/corestack/sites/{site}/node-runtime/packages/check

Path parameters

siteintegerRequired

The id of a site row. A website's production site and each of its environments has its own id. Digits only. At least 1.

Returns

200 The packages with a newer version and the advisories.

Fields of the 200 answer
advisoriesarray of objectsRequired
Fields of each item
installedstring or nullRequired
namestringRequired
severitystringRequired
titlestring or nullRequired
urlstring or nullRequired
auditstringRequired

ok when the advisories could be read.

outdatedarray of objectsRequired

The packages with a newer version.

Fields of each item
lateststring or nullRequired

The newest version on the registry.

namestringRequired
resolvedstring or nullRequired
selectorstring or nullRequired
wantedstring or nullRequired

The newest version within the selector.

read_atstringRequired

Format: date-time.

If it is refused

StatusReasonWhat to do
401noneSend a valid token as Authorization: Bearer <token>.
403company_unavailableYour company is unavailable.
403scope_requiredUse a token with the scope named in scope.
403two_factor_requiredTurn on two-factor on your account, then send again.
404feature_offThis feature is not on for your organisation yet.
409busyAnother operation is running on the site. Wait for it to finish.
409not_runningThe site, environment or deployment is not running. Read the message: where it can be started or will recover, start it or wait, then try again.
429rate_limitedWait for the seconds in Retry-After.
502node_check_failedThe package check answered something the control panel cannot read.
503connect_failedThe cluster could not be reached.
503temporarily_unavailableThe Control Panel could not answer just now. Nothing was started; try again shortly.
503switched_offCorefinity has switched this action off for the moment. Try again later.

Reasons are listed by name in Errors and refusals.

The same task elsewhere

curl -X POST https://manage.corefinity.com/api/corestack/sites/1042/node-runtime/packages/check \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json"
{
  "advisories": [
    {
      "installed": "2.8.0",
      "name": "svgo",
      "severity": "high",
      "title": "Prototype pollution",
      "url": "https://example.com/advisories/GHSA-0000-0000-0000"
    }
  ],
  "audit": "ok",
  "outdated": [],
  "read_at": "2026-11-09T21:35:28Z"
}
Try it

Try it is off for this endpointIt has not been cleared for the console. Copy the request and run it yourself when you are sure.

Was this helpful?
Open in ClaudeOpen in ChatGPT