This guide covers available updates, trigger flow, policy behavior, and history tracking.
The updates system combines:
- Available update detection.
- Per-app/per-tenant update policies.
- Manual triggers (single and bulk).
- Auto-update history and safeguards.
UI page: /dashboard/updates
| Policy | Behavior |
|---|---|
auto_update |
Auto-apply using stored deployment configuration |
notify |
Surface update but do not auto-apply |
ignore |
Ignore update (used to skip in bulk trigger) |
pin_version |
Keep app pinned to a target version |
| Method | Path | Purpose |
|---|---|---|
GET |
/api/updates/available |
List updates with policy overlays |
PATCH |
/api/updates/available |
Dismiss/restore updates |
POST |
/api/updates/trigger |
Trigger update(s), max 10 per request |
GET |
/api/updates/history |
Retrieve auto-update history |
GET |
/api/update-policies |
List policies |
POST |
/api/update-policies |
Upsert policy |
GET |
/api/update-policies/[id] |
Get policy |
PATCH |
/api/update-policies/[id] |
Update policy |
DELETE |
/api/update-policies/[id] |
Delete policy |
All endpoints require Authorization: Bearer <microsoft-access-token>.
POST /api/updates/trigger runs this high-level flow per requested app:
- Validate request and user context.
- Find matching
update_check_resultsrow. - Ensure policy exists:
- If missing, attempt to clone deployment config from prior successful deployment.
- Temporarily force policy to
auto_update+is_enabled=truefor manual run. - Resolve installer metadata from curated app/version data.
- Create auto-update history + packaging job.
- Restore original policy state after trigger.
The update trigger logic applies safeguards such as:
- Consecutive failure threshold
- Hourly update caps
- Cooldown windows
- Consent verification
- Optional requirement for prior deployment config
If a policy accumulates failures past threshold, it can be auto-disabled.
tenant_id(optional)include_dismissed=true|false(optional)critical_only=true|false(optional)
tenant_id(optional)winget_id(optional)status(pending|packaging|deploying|completed|failed|cancelled)limit(max 100)offset
- Policy
pin_versionrequirespinned_version. - Policy
auto_updaterequiresdeployment_config. - Bulk trigger payloads are limited to 10 update items.
The updates page provides:
- Available updates tab with quick actions
- Auto-update history tab with pagination
- "Update all" handling that skips ignored/pinned-mismatch entries
docs/API_REFERENCE.mddocs/ENV_REFERENCE.md