# POST /updates/check

First published 3 Oct 2026 (release 0.1.0) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the updates group.

Check for a new UrbeStack release

- Who may call it: administrator
- Token scope, any of: settings, all
- Answers: 200 OK

UrbeStack queries the release endpoint on the license server and verifies the manifest signature against its public keys. It records the release if it is newer than the installed version. If signature verification fails, UrbeStack discards the manifest and shows a red notice on every page of the administrator's panel.

The response includes the resulting status in updates, including why a release is waiting, and up to 50 entries in history, newest first. This request only checks for a release. The hourly updater handles installation according to updates.automatic, updates.urgent_automatic and updates.hour. Use POST /updates/install to request immediate installation.

## As a command

- [urbestack-update-check](https://urbestack.com/docs/commands/urbestack-update-check.md): Checks the release endpoint on the license server, alongside the license check, for the latest UrbeStack release.

## Example

Set $API to the base URL and $TOKEN to the token, as the [API overview](https://urbestack.com/docs/api.md) shows.

```
curl -sS -X POST "$API/updates/check" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "history": [
    {
      "actor": "text",
      "changelog": "text",
      "commands": [
        "text"
      ],
      "finished_at": "2026-09-09T10:15:04Z",
      "from": "text",
      "id": 1,
      "log": "",
      "message": "text",
      "phases": [
        {
          "at": "text",
          "phase": "text"
        }
      ],
      "result": "installed",
      "source": "timer",
      "started_at": "2026-09-09T10:15:01Z",
      "to": "text",
      "urgent": true
    }
  ],
  "updates": {
    "backups": {
      "hour": "text",
      "last_ended_at": "text"
    },
    "blocked": {
      "at": "text",
      "job": {},
      "runs": 1,
      "version": "0.0.1"
    },
    "check_error": "text",
    "check_refused": "text",
    "checked_at": "text",
    "copy_bytes": 1,
    "installed": "text",
    "installed_how": {
      "actor": "text",
      "at": "text",
      "by": "timer"
    },
    "installs_at": "text",
    "keys": [
      "text"
    ],
    "last": {
      "at": "text",
      "commands": [
        "text"
      ],
      "dismissed": true,
      "from": "text",
      "id": 1,
      "message": "text",
      "result": "installed",
      "source": "/old",
      "version": "0.0.1"
    },
    "next_ask": "text",
    "packages_dir": "text",
    "release": {
      "base": "text",
      "changelog": "text",
      "found_at": "text",
      "released": "text",
      "terms": 1,
      "urgent": true,
      "version": "0.0.1"
    },
    "rollback_ready": true,
    "running": {
      "job": {
        "id": 1,
        "progress": 100,
        "started_at": "2026-09-09T10:15:01Z",
        "type": "rebuild"
      },
      "phase": "preparing",
      "phases": [
        {
          "at": "text",
          "phase": "text"
        }
      ],
      "queued": 1,
      "since": "text",
      "version": "0.0.1"
    },
    "settings": {
      "automatic": true,
      "hour": "text",
      "urgent_automatic": true
    },
    "terms": {
      "accepted": {
        "at": "text",
        "by": "text",
        "version": 1
      },
      "installed": 1,
      "url": "text",
      "wanted": 1
    },
    "waiting": {
      "message": "text",
      "reason": "quiet-hour",
      "red": true,
      "since": "text"
    }
  }
}
```

## Errors

- 401: Authentication required
- 409: An update run is in progress
