Bot NLU Model Training Failure in Multi-Org Premium App

Stuck on a persistent 422 Unprocessable Entity error when attempting to trigger a retraining job for an NLU model via the Platform API. The integration is a Premium AppFoundry solution deployed across multiple linked organizations, utilizing OAuth tokens scoped to the primary org.

The specific endpoint failing is POST /api/v2/ai/nlu/models/{modelId}/retrain. The request body is minimal, containing only the standard trigger object. Interestingly, manual retraining via the Admin Console succeeds without issue, suggesting the issue lies within the API authentication or scope validation for automated workflows.

“Automated retraining requires the ‘ai:nlu:write’ permission and must be initiated from an OAuth token associated with the model’s owning organization.”

We have verified that the service account possesses the necessary permissions. The error payload returns a generic invalid_request message without further detail. This is blocking our automated model lifecycle management for enterprise clients. Is there a known limitation with cross-org API calls for NLU retraining, or a specific header requirement we are missing? The SDK version is 2023.12.0.