diff --git a/pkg/service/ingress.go b/pkg/service/ingress.go index fcee84634..40f2f51e5 100644 --- a/pkg/service/ingress.go +++ b/pkg/service/ingress.go @@ -159,6 +159,7 @@ func (s *IngressService) CreateIngressWithUrl(ctx context.Context, urlStr string ParticipantName: req.ParticipantName, ParticipantMetadata: req.ParticipantMetadata, State: &livekit.IngressState{}, + Enabled: req.Enabled, } switch req.InputType { @@ -261,6 +262,10 @@ func updateInfoUsingRequest(req *livekit.UpdateIngressRequest, info *livekit.Ing info.Video = req.Video } + if req.Enabled != nil { + info.Enabled = req.Enabled + } + if err := ingress.ValidateForSerialization(info); err != nil { return err }