Sync a source
Read a source's translation files from a deployment pipeline, without a backoffice login.
/umbraco/app-translations/api/v1/sources/{alias}/syncSyncs one source and waits for it to finish. The endpoint is off until you configure a secret or register the deployment sync policy. Send the secret below, or what your policy checks, such as an OIDC token.
aliaspathstringrequiredThe source identifier, from the source’s Advanced settings.
AuthorizationheaderstringThe deployment sync key, as a bearer token.
X-Oidc-TokenheaderstringAn OIDC token, when the deployment sync policy uses API OIDC’s scheme. API OIDC reads this header unless you configured another.
Response
syncIdstringrequiredThe sync’s identifier, as History lists it.
sourceIdstringrequiredThe source’s identifier.
revisionstringrequiredA fingerprint of the files the sync read.
startedAtstringrequiredWhen the sync started, as an ISO 8601 timestamp.
completedAtstringrequiredWhen it finished.
statusstringrequiredHow the sync ended.
addedCountintegerrequiredNew keys.
changedCountintegerrequiredKeys whose default text changed.
missingCountintegerrequiredKeys the files no longer have, deleted or kept as No longer used.
invalidCountintegerrequiredNot 0 when the files could not be read as messages.
errorstringWhat went wrong, when something did.
| Status | Meaning |
|---|---|
200 |
Synced. |
401 |
The key or token is missing or wrong. |
403 |
The token is valid, but the policy doesn’t let it in. |
404 |
No source has that identifier. |
409 |
The source is turned off, or already syncing. |
502 |
Umbraco could not fetch or read the translation files. |
503 |
No key is configured and no deployment sync policy is registered, so the endpoint is off. |