publish_cdn
Trigger a CDN release for the project. Builds bundles for every (language, namespace) combo (or restricted to the ones you pass) and pushes them to the public CDN. Idempotent: re-running with no content changes returns the same bundles as reused. Subscribed SDKs receive a Centrifugo translations_published event for every newly created bundle and can refresh in-place. By default a namespace bundle with 0 publishable keys (all below translated) is SKIPPED and reported in warnings[] (nothing is served for it); pass allow_empty=true to force-publish the empty bundle anyway.
Paramètres
Section intitulée « Paramètres »| Nom | Type | Description | |
|---|---|---|---|
project_uuid | string | optionnel | Project UUID. Required when multiple projects are configured (SONENTA_PROJECTS); defaults to the single configured project otherwise. |
language_code | string | optionnel | Restrict to one BCP-47 language. Omit for ALL. |
namespace | string | optionnel | Restrict to one namespace slug. Omit for ALL. |
version_slug | string | optionnel | Project version slug. Defaults to the production version. |
allow_empty | boolean | optionnel | When false (the default) the backend REFUSES to publish a status-empty bundle (a namespace that has keys but 0 of them are publishable, e.g. all still below translated / in draft) and SKIPS it, returning an entry in warnings[] instead of a silent empty bundle. Set true only to deliberately force-publish such an empty bundle. Leave it false in normal use. |
{ "tool": "publish_cdn", "arguments": {}}