BizKitHub
DocsAPI ReferencePost/bff/post/post-auto-translate
postPostAdmin BFF

/bff/post/post-auto-translate

Translates the post title + content from the organisation default locale into every other configured organisation locale. For each target locale: creates the translation if missing, refreshes it when the source article has been edited since (detected via content__post_locale.source_history_id vs. the newest source-locale history row), skips when already up to date. Canonical routes are ensured per locale.

PostpostBffPostPost-auto-translate

Parameters

JSON body

Request body

application/json
postIdstringRequired

Post external ID to auto-translate.

ExampleaBcDeFgH12345678

Response schema

1 status code documented

200Success
translatedLocalesstring[]Required

Union of createdLocales + updatedLocales, kept for backward wire compatibility. Empty when every configured target locale was already in sync with the source version.

Locale code that was written (created or refreshed).

createdLocalesstring[]Required

Target locales that had no content__post_locale row before this call.

Locale code that received a brand-new translation row.

updatedLocalesstring[]Required

Target locales whose translation existed but was regenerated because source_history_id no longer matched the newest source-locale history row.

Locale code whose translation was refreshed.

Response example

application/json
{
  "translatedLocales": [
    "string"
  ],
  "createdLocales": [
    "string"
  ],
  "updatedLocales": [
    "string"
  ]
}

Request example

POST /bff/post/post-auto-translate

post
curl -X POST "https://api.bizkithub.com/bff/post/post-auto-translate" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "postId": "aBcDeFgH12345678"
}'

Need an API key?

All BizKitHub public API endpoints require authentication via API key.

Get API Key