Console Exceptions API Schema

This document defines the request/response shape for the StellaOps Console exceptions surface — the /exceptions CRUD and workflow endpoints proxied by the gateway. It is the contract the Angular Console SDK is generated against.

Audience: Console and SDK developers. For the conceptual overview and the full set of exception API surfaces, see Exceptions API.

Status: interim contract shipped to unblock SDK and UI work. Align to the authoritative Policy/Events schema once it is published.

Scope

Headers

Scopes

Endpoints

Entity shape

This doc mirrors the web contract used by the Angular SDK (src/Web/StellaOps.Web/src/app/core/api/exception.contract.models.ts).

Status transitions (baseline)

Create request

The Console does not send the entity shape above on create. It maps the draft to the Policy Engine create contract: type, scope (one vulnerability, package URL, artifact digest or policy rule, plus environments), ownerId (the signed-in user), reasonCode, rationale (at least 50 characters), expiresAt and optional metadata, and refuses a draft that contract cannot hold. The mapping is described in Explorer exception draft controls.