Skip to main content

Catalog refresh

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-refresh · 6 operations

GET /v1/catalog/{tenant_slug}/refresh-policy​

Get Catalog Refresh Policy

Read the tenant kill switch for catalog item refresh (projects:view).

Operation id: get_catalog_refresh_policy_v1_catalog__tenant_slug__refresh_policy_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 refresh policy.application/json CatalogRefreshPolicy
422Validation Errorapplication/json HTTPValidationError

PUT /v1/catalog/{tenant_slug}/refresh-policy​

Set Catalog Refresh Policy

Turn catalog item refresh on or off for the whole tenant (imports:edit).

Off stops the scheduled sweep and manual checks for every item in the tenant; each item's setting is kept and resumes when the switch is turned back on.

Operation id: set_catalog_refresh_policy_v1_catalog__tenant_slug__refresh_policy_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 set catalog refresh policy.

Responses

StatusDescriptionBody
200Successful response for set catalog refresh policy.application/json CatalogRefreshPolicy
422Validation Errorapplication/json HTTPValidationError

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

Get Catalog Item Refresh

Read an item's refresh setting and last check (projects:view).

An item with no setting answers configured: false with cadence off.

Operation id: get_catalog_item_refresh_v1_catalog__tenant_slug___item_id__refresh_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 get catalog item refresh.application/json CatalogRefreshOut
422Validation Errorapplication/json HTTPValidationError

PUT /v1/catalog/{tenant_slug}/{item_id}/refresh​

Put Catalog Item Refresh

Create or replace an item's refresh setting (projects:edit).

The adapter must support live discovery and have a refresh runner (graphql, grpc, fhir); the endpoint must pass the SSRF URL policy. Changing the adapter or endpoint resets the check history; saving always clears any failure backoff.

Raises: HTTPException: 404 for an unknown item; 422 adapter-not-refreshable / invalid-endpoint / invalid-credential; 503 when credential encryption is not configured and a credential is supplied.

Operation id: put_catalog_item_refresh_v1_catalog__tenant_slug___item_id__refresh_put

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.

Request body (required)

Request body for put catalog item refresh.

Responses

StatusDescriptionBody
200Successful response for put catalog item refresh.application/json CatalogRefreshOut
422Validation Errorapplication/json HTTPValidationError

DELETE /v1/catalog/{tenant_slug}/{item_id}/refresh​

Delete Catalog Item Refresh

Remove an item's refresh setting and its credential (projects:edit). Idempotent.

Operation id: delete_catalog_item_refresh_v1_catalog__tenant_slug___item_id__refresh_delete

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
204Successful response for delete catalog item refresh.—
422Validation Errorapplication/json HTTPValidationError

POST /v1/catalog/{tenant_slug}/{item_id}/refresh/check​

Check Catalog Item Refresh

Run one live check now and return the recorded outcome (projects:edit).

Works for every cadence except off, including manual. When the live source differs from the item's current version, the check adds a version through the import pipeline exactly as a manual re-import would, with a change report, and answers status: changed; its provenance records refreshTrigger: manual. An unchanged source creates nothing. A failed check answers 200 with status: failed and the reason; like a scheduled failure it backs off the next scheduled check and never creates a version.

Raises: HTTPException: 404 when the item has no refresh setting; 409 refresh-off when its cadence is off, refresh-disabled when the tenant or deployment switch is off.

Operation id: check_catalog_item_refresh_v1_catalog__tenant_slug___item_id__refresh_check_post

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 check catalog item refresh.application/json CatalogRefreshOut
422Validation Errorapplication/json HTTPValidationError

Schemas used​

CatalogRefreshOut​

An item's refresh setting and the outcome of its last check. Never carries a credential.

PropertyTypeRequiredDescription
itemIdstringyesItem ID.
configuredbooleanyesFalse when the item has no refresh setting (the defaults below).
cadenceenum "off", "manual", "hourly", "daily", "weekly"yesCadence.
adapterstring or nullnoAdapter.
endpointstring or nullnoEndpoint.
optionsobjectnoOptions.
authTypeenum "none", "bearer", "header", "oauth2"noAuth Type.
hasCredentialbooleannoHas Credential.
statusenum "never", "unchanged", "changed", "failed"noThe last check: never (not run yet), unchanged (the live source matches the item's current version), changed (the live source differed, so the check added a version), failed.
lastCheckedAtstring or nullnoLast Checked At.
lastSuccessAtstring or nullnoLast Success At.
lastFailureAtstring or nullnoLast Failure At.
lastErrorstring or nullnoLast Error.
lastFingerprintstring or nullnoLast Fingerprint.
consecutiveFailuresintegernoConsecutive Failures.
nextCheckAtstring or nullnoWhen the sweep next checks the item (null for off / manual).
keepVersionsintegernoRefresh-created versions kept; older ones are pruned (MFI-31.5).
tenantEnabledbooleannoTenant Enabled.
cadencesarray of stringnoCadences.
adaptersarray of stringnoAdapters that can be refreshed.
authTypesarray of stringnoAuth Types.

CatalogRefreshPolicy​

The tenant kill switch for catalog item refresh.

PropertyTypeRequiredDescription
enabledbooleanyesWhether the resource is active.

CatalogRefreshUpdate​

PUT …/{item_id}/refresh: the whole setting.

Leave credential out to keep the stored one, send null to clear it, or send an object to replace it.

PropertyTypeRequiredDescription
cadenceenum "off", "manual", "hourly", "daily", "weekly"yesoff · manual · hourly · daily · weekly.
adapterstringyesThe import adapter: graphql, grpc or fhir.
endpointstringyesAn http(s) URL for GraphQL; a host:port target for gRPC; a FHIR server's base URL (its /metadata is read).
optionsobjectnoAdapter options; gRPC reads secure (TLS, default false).
credentialCatalogRefreshCredential or nullnoCredential.
keepVersionsinteger or nullnoHow many refresh-created versions to keep (MFI-31.5); older ones are pruned unless tagged, a conversion source, breaking drift or its baseline, locked, or the newest. Leave out to keep the stored value (50 for a new setting).

HTTPValidationError​

Validation error response emitted when request data fails schema checks.

PropertyTypeRequiredDescription
detailarray of ValidationErrornoDetail.