Looking for advice on programmatically updating NLU intent confidence thresholds for a specific language model within a Premium AppFoundry integration. The POST /api/v2/analytics/bots/nlu/models/{modelId}/language-models/{languageModelId} endpoint consistently returns a 400 Bad Request with “Invalid confidence threshold value” despite adhering to the schema definition. The payload is being sent from a multi-org context using the primary org’s OAuth token.
The documentation states this endpoint is supported for Premium Apps, but the error suggests a validation mismatch or permission scope issue specific to multi-org provisioning. Any insights on the correct payload structure or required OAuth scopes?
model_id: "bot_model_v2"
language_model_id: "en-us"
thresholds:
default: 0.75
intents:
- name: "order_status"
threshold: 0.85