diff --git a/integration/integration.go b/integration/integration.go index 528b681..dd74f9a 100644 --- a/integration/integration.go +++ b/integration/integration.go @@ -75,11 +75,15 @@ func (c *Client) ForceUpdateAllFields(context context.Context, request *UpdateIn request.OtherFields["ignoreRespondersFromPayload"] = request.IgnoreRespondersFromPayload request.OtherFields["suppressNotifications"] = request.SuppressNotifications request.OtherFields["responders"] = request.Responders + request.OtherFields["recipients"] = request.Responders request.OtherFields["emailUsername"] = request.EmailUsername request.OtherFields["url"] = request.WebhookUrl request.OtherFields["addAlertDescription"] = request.AddAlertDescription request.OtherFields["addAlertDetails"] = request.AddAlertDetails request.OtherFields["headers"] = request.Headers + request.OtherFields["assignedTeam"] = request.OwnerTeam + request.OtherFields["ownerTeam"] = request.OwnerTeam + err := c.client.Exec(context, request.OtherFields, result) if err != nil { return nil, err diff --git a/integration/request.go b/integration/request.go index 3deba47..d56a94b 100644 --- a/integration/request.go +++ b/integration/request.go @@ -153,6 +153,7 @@ type UpdateIntegrationRequest struct { Responders []Responder AddAlertDescription *bool AddAlertDetails *bool + OwnerTeam *og.OwnerTeam `json:"ownerTeam,omitempty"` Headers map[string]string OtherFields }