Skip to main content

Catalog drift

Generated from apiome-rest/openapi.yaml (API version 1.719.0) — do not edit by hand. How to authenticate is on the REST API reference.

Tag: catalog-drift · 4 operations

GET /v1/catalog/{tenant_slug}/drift-notifications​

Get Catalog Drift Settings

Read the tenant's catalog drift alert settings (projects:view).

Operation id: get_catalog_drift_settings_v1_catalog__tenant_slug__drift_notifications_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for get catalog drift settings.application/json CatalogDriftSettingsOut
422Validation Errorapplication/json HTTPValidationError

PUT /v1/catalog/{tenant_slug}/drift-notifications​

Put Catalog Drift Settings

Replace the tenant's catalog drift alert settings (imports:edit).

Which severities are announced (the rest only badge), immediate or daily-digest delivery, whether breaking drift skips the digest, and the stored email opt-in. Announcements go to the tenant's push-webhook subscriptions and the item's owner team; a version created by Check now is never announced.

Operation id: put_catalog_drift_settings_v1_catalog__tenant_slug__drift_notifications_put

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (required)

Request body for put catalog drift settings.

Responses

StatusDescriptionBody
200Successful response for put catalog drift settings.application/json CatalogDriftSettingsOut
422Validation Errorapplication/json HTTPValidationError

GET /v1/catalog/{tenant_slug}/{item_id}/drift​

List Catalog Item Drift

List the item's drift events, newest first, with their classified changes (projects:view).

Operation id: list_catalog_item_drift_v1_catalog__tenant_slug___item_id__drift_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
item_idpathstringyesCatalog item identifier.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for list catalog item drift.application/json CatalogDriftEventList
422Validation Errorapplication/json HTTPValidationError

POST /v1/catalog/{tenant_slug}/{item_id}/drift/{event_id}/dismiss​

Dismiss Catalog Item Drift

Dismiss a drift event: its badge and banner go away; the event and its changes stay (projects:edit).

Dismissing an already-dismissed event changes nothing.

Raises: HTTPException: 404 when the item or the event is not found.

Operation id: dismiss_catalog_item_drift_v1_catalog__tenant_slug___item_id__drift__event_id__dismiss_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
item_idpathstringyesCatalog item identifier.
event_idpathstringyesPath parameter identifying the event id segment.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for dismiss catalog item drift.application/json CatalogDriftEvent
422Validation Errorapplication/json HTTPValidationError

Schemas used​

CatalogDriftEvent​

One drift event with its classified changes.

PropertyTypeRequiredDescription
eventIdstringyesEvent ID.
severityenum "safe", "dangerous", "breaking"yesSeverity.
versionIdstringyesVersion ID.
versionLabelstringyesVersion Label.
changeCountintegeryesNumber of change.
countsmap of integernoCounts.
triggerenum "sweep", "manual"yesTrigger.
detectedAtstring or nullnoDetected At.
linkstringyesThe item's Versions tab, opened on this drift.
parentVersionIdstring or nullnoParent Version ID.
parentVersionLabelstring or nullnoParent Version Label.
notificationenum "none", "sent", "pending_digest", "digested"yesNotification.
notifiedAtstring or nullnoNotified At.
dismissedAtstring or nullnoDismissed At.
parentVersionPrunedbooleannoThe version it was compared with was pruned by version retention (MFI-31.5).
compareBaseVersionIdstring or nullnoThe version to diff against: the compared version while it is kept, else the newest kept version before this one; null when there is none.
compareBaseVersionLabelstring or nullnoCompare Base Version Label.
changesarray of CatalogDriftChangenoWorst first; at most 200 (changeCount is the full count).

CatalogDriftEventList​

An item's drift events, newest first.

PropertyTypeRequiredDescription
eventsarray of CatalogDriftEventyesEvents.

CatalogDriftSettings​

The tenant's drift alert settings.

PropertyTypeRequiredDescription
notifyBreakingbooleannoAnnounce breaking drift.
notifyDangerousbooleannoAnnounce dangerous drift.
notifySafebooleannoAnnounce safe drift. Off: safe drift only shows a badge.
deliveryenum "immediate", "daily_digest"noimmediate: one webhook per drift; daily_digest: one webhook a day listing it all.
breakingImmediatebooleannoWith daily_digest, still send breaking drift right away.
emailEnabledbooleannoAlso email drift to the item's owner team: each alert right away, or one email per digest. A no-op when the server has no mailer (SENDGRID_API_KEY / EMAIL_FROM).

CatalogDriftSettingsOut​

The settings plus when they last changed and when the last digest went out.

PropertyTypeRequiredDescription
notifyBreakingbooleannoAnnounce breaking drift.
notifyDangerousbooleannoAnnounce dangerous drift.
notifySafebooleannoAnnounce safe drift. Off: safe drift only shows a badge.
deliveryenum "immediate", "daily_digest"noimmediate: one webhook per drift; daily_digest: one webhook a day listing it all.
breakingImmediatebooleannoWith daily_digest, still send breaking drift right away.
emailEnabledbooleannoAlso email drift to the item's owner team: each alert right away, or one email per digest. A no-op when the server has no mailer (SENDGRID_API_KEY / EMAIL_FROM).
configuredbooleanyesFalse when the tenant uses the defaults.
updatedAtstring or nullnoUpdated At.
lastDigestAtstring or nullnoLast Digest At.

HTTPValidationError​

Validation error response emitted when request data fails schema checks.

PropertyTypeRequiredDescription
detailarray of ValidationErrornoDetail.