Trigger a manual sync for the tenant FLECS store
POST
/api/v1/flecs-store/sync
const url = 'http://localhost:3000/api/v1/flecs-store/sync';const options = {method: 'POST', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:3000/api/v1/flecs-store/sync \ --header 'X-API-Key: <X-API-Key>'Triggers an immediate sync of the current organization’s FLECS marketplace store, ahead of the automatic 5-minute schedule. Returns null when no store is configured, or when the FLECS catalog discovery call itself failed before the underlying OCI sync could start (see the store’s lastSyncError for the reason).
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Sync operation completed (or discovery failed — see lastSyncError)
Media type application/json
object
success
required
boolean
status
required
string
registryId
required
string
repositoriesFound
required
number
applicationsFound
required
number
applicationsImported
required
number
applicationsUpdated
required
number
versionsRemoved
required
number
versionsMarkedUnavailable
required
number
applicationsRemoved
required
number
errors
required
Array<string>
perRepository
required
Array<object>
object
repository
required
string
tagCount
required
number
found
required
number
imported
required
number
updated
required
number
errors
required
Array<string>
syncDuration
required
number
Example
{ "success": true, "status": "success", "registryId": "550e8400-e29b-41d4-a716-446655440000", "repositoriesFound": 10, "applicationsFound": 6, "applicationsImported": 4, "applicationsUpdated": 2, "versionsRemoved": 0, "versionsMarkedUnavailable": 0, "applicationsRemoved": 0, "errors": [], "perRepository": [ { "repository": "catalog/com-example-gateway-app", "tagCount": 12, "found": 3, "imported": 1, "updated": 2, "errors": [] } ], "syncDuration": 1234}Unauthorized
Forbidden
Application service unavailable