Skip to main content

Keep imports up to date

An import is a snapshot. Apiome can keep it current by checking the source again and adding a new version when the source changed. How it does that depends on where the import came from. This page explains each source and links to the page with the steps.

What refreshes, and how​

Imported fromHow it stays currentTurned onSteps
A Git repositoryApiome re-checks each imported file on the repository's Scan cadence, or on its branch's own cadence when a branch rule sets one. A push webhook from GitHub or GitLab refreshes the changed file within seconds; “Refresh now” on the Specs tab re-reads them at onceWith Auto-refresh under Scan cadence on the repository's Settings tabRefresh on push
A URL (URL Import)Apiome asks the URL every five minutes whether the document changed, using its ETag and Last-ModifiedAutomatically, for a URL with no credentialsKeep a URL import up to date
A URL, into the catalog (Import to catalog → URL Import)The workspace's Catalog URLs connector asks each item's URL whether the document changed, using its ETag and Last-Modified, on the connector cadenceAutomatically, for every catalog item imported from an http or https URLKeep a URL catalog item up to date
A live endpoint in the catalog (GraphQL introspection, gRPC server reflection, FHIR /metadata)Live refresh re-discovers the API on the cadence you chooseWhen you set it up on the item's Provenance tabKeep a catalog item fresh
An uploaded fileNothing can re-check it. Apiome flags the item once its upload is old enough to be stale, and you re-upload the current fileAlways (the flag)Uploaded files
Pasted textNever refreshed: there is no source to check—Import it again

Rules the refreshing sources share​

  • A version is added only when the source changed. When nothing changed, nothing is added. A new version is labelled with the date and time, such as 2026-10-30T14:03Z. A repository branch whose rule names a version line puts the line first, such as 2.x-2026-10-30T14:03Z.
  • Your edits are not silently overwritten. If you changed the latest version in Apiome, a repository refresh follows the repository's conflict setting (Hold for review, Overwrite or New branch), and a URL import's refresh is held until you import the URL again.
  • An older document never replaces a newer one. A repository file or URL whose document is older than what you imported is ignored.
  • A failed check changes nothing. It is reported and retried later, waiting longer after each failure in a row.
  • Credentials. A URL imported with a token, key or password is not refreshed, because Apiome never stores those credentials. Catalog live refresh encrypts the credential you give it for that item and never shows it again.

Turn refresh off​

  • One repository: turn off Auto-refresh under Scan cadence on its Settings tab (Repositories).
  • New repositories: a workspace administrator turns Auto-refresh off in the workspace refresh defaults.
  • One branch of a repository: add a rule for it under Branch refresh rules with Refresh off (Branch refresh rules).
  • One URL import: PATCH …/url-imports/{id} with the REST API (URL Import).
  • Catalog items imported from a URL: pause the workspace's Catalog URLs connector with PATCH …/connectors/{id} and {"status": "paused"} (REST reference); apiome connectors list gives its id.
  • One catalog item: set Cadence to Off to pause, or click “Turn off” on its Live refresh card to remove the setting (Change or stop refresh).
  • The whole workspace: an administrator can pause catalog live refresh with apiome catalog refresh-policy set --disabled (Switch refresh off for the workspace).
  • The whole deployment: an operator stops every repository and URL refresh with APIOME_REFRESH_ENABLED=false, and every catalog live refresh with APIOME_CATALOG_REFRESH_ENABLED=false.

Not yet available​

These are planned and not in the product yet:

  • Workspace refresh defaults for URL imports and catalog sources. Repositories already start from the workspace's refresh defaults.

Where next​