Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(sdk-go): say UpdateSessionConfigRequest applies in any state

Yudhi Armyndharis84cf06d5bc8f
diff --git a/sdk/go/types_session.go b/sdk/go/types_session.go
index beb9c665f..dd4a42c98 100644
--- a/sdk/go/types_session.go
+++ b/sdk/go/types_session.go
@@ -268,8 +268,9 @@ type SessionConfig struct {
ReconnectBaseDelay int `json:"reconnectBaseDelay"`
}
-// UpdateSessionConfigRequest is a partial update of a RUNNING session's config — no re-link, no QR
-// scan.
+// UpdateSessionConfigRequest is a partial update of a session's config, merged in any session state
+// with no restart, re-link or QR scan. AutoRejectCalls applies immediately; MaxReconnectAttempts and
+// ReconnectBaseDelay apply on the next start.
//
// The route needs THREE states per field, not two: a key that is absent leaves the value unchanged, a
// key sent as explicit null clears it back to the default, and a value sets it. A `*int` with