Agent Scripting API 400 on BYOC Trunk Metadata

Just noticed that the POST /api/v2/agent-scripts endpoint returns a 400 error when injecting BYOC trunk metadata into script variables. The payload validates fine in Swagger, but the production instance rejects it.

“Invalid property ‘trunk_failover_status’ for entity AgentScript”

This happens specifically when referencing our Singapore trunks (region: ap-southeast-1). Is this a known limitation for BYOC attributes in scripting, or is the schema outdated?

This looks like a schema mismatch rather than a regional issue. The AgentScript entity does not support custom BYOC trunk metadata directly; try mapping those values to standard custom fields instead. Check the valid properties here: https://developer.genesys.cloud/api-docs/api/v2/agent-scripts