Skip to content

GET /api/v1/admin/orgs/:slug/recent-changes

This page is auto-generated from src/admin/routes.ts. Do not edit by hand — see docs/dev/docs-auto-sync.md.

:warning: Heuristic extraction — not a contract. Response shapes below are mined from c.json(...) literals in the handler via an AST walker. Computed fields, ternaries, and non-literal returns are shown as placeholders. Refer to the linked source file for the authoritative behaviour.

GET /api/v1/admin/orgs/:slug/recent-changes

Section titled “GET /api/v1/admin/orgs/:slug/recent-changes”

Requires the following capability(ies):

  • overview:r

Other middleware observed on this route (heuristic):

  • requireCapability

GET /api/v1/admin/orgs/:slug/recent-changes — #347 last-changed attribution. Returns the most recent admin-surface mutation per (policies, blocklist) so the org-detail page can render a “last changed: via ” footer under each editable card. The data comes from audit_log envelopes emitted by the PATCH /policies and POST/DELETE /blocklist endpoints (see encodeChangeAuditReason); the admin-only filter keeps scan-decision rows out of the result. Read-only, gated on overview:r — the timestamps are about your own org’s history and don’t reveal any policy content the page doesn’t already show.

{
"error": "Org not found"
}

Shape not a JSON literal — passed through from a variable or expression. See source.

  • File: src/admin/routes.ts
  • Line: 2676