Skip to content

Commit d63510d

Browse files
authored
Merge pull request #131 from opsgenie/api-int-update
Added ownerTeam for updating integration owner teams
2 parents 630f160 + a7b2d75 commit d63510d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

integration/integration.go

+4
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,15 @@ func (c *Client) ForceUpdateAllFields(context context.Context, request *UpdateIn
7575
request.OtherFields["ignoreRespondersFromPayload"] = request.IgnoreRespondersFromPayload
7676
request.OtherFields["suppressNotifications"] = request.SuppressNotifications
7777
request.OtherFields["responders"] = request.Responders
78+
request.OtherFields["recipients"] = request.Responders
7879
request.OtherFields["emailUsername"] = request.EmailUsername
7980
request.OtherFields["url"] = request.WebhookUrl
8081
request.OtherFields["addAlertDescription"] = request.AddAlertDescription
8182
request.OtherFields["addAlertDetails"] = request.AddAlertDetails
8283
request.OtherFields["headers"] = request.Headers
84+
request.OtherFields["assignedTeam"] = request.OwnerTeam
85+
request.OtherFields["ownerTeam"] = request.OwnerTeam
86+
8387
err := c.client.Exec(context, request.OtherFields, result)
8488
if err != nil {
8589
return nil, err

integration/request.go

+1
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ type UpdateIntegrationRequest struct {
153153
Responders []Responder
154154
AddAlertDescription *bool
155155
AddAlertDetails *bool
156+
OwnerTeam *og.OwnerTeam `json:"ownerTeam,omitempty"`
156157
Headers map[string]string
157158
OtherFields
158159
}

0 commit comments

Comments
 (0)