Context:
Executing a bulk registration state update via Platform API v2 using SDK Python 2.1.8 for our 15 BYOC trunks in Asia/Singapore. The endpoint POST /api/v2/trunks/sip/registrations consistently returns 409 Conflict with error code CONFLICTING_REGISTRATION_STATE when attempting to force re-registration on trunks that are currently marked as REGISTRATION_IN_PROGRESS. This occurs specifically during our nightly failover validation scripts.
Question:
Is there a specific API sequence or wait-time requirement between checking registration status and forcing a re-register to avoid this conflict? The documentation implies idempotency, but the 409 suggests a race condition in the state machine for BYOC edges.