If using the EU instance of Opsgenie, the URL needs to be https://api.eu.opsgenie.com for requests to be successful.
Update Audience Template(Partial)
Update audience template request is used to update the audience template (responder and/or stakeholder) of a service and it is a write request. If the integration of the API key configured as read-only, the request will not be accepted. For more information, you can refer to API Access Management.
Responder of the audience template. It may contain responder team and user ids.For more information about responder object click here.
stakeholder
false
Stakeholder of the audience template. It may contain pre-defined individuals and match type configuration conditions for rule based notifications.For more information about stakeholder object click here.
Responder Fields
Field
Mandatory
Description
Limit
teams
false
teamId list to be used as responder teams.
50 teams
individuals
false
userId list to be used as responder users.
50 userIds
Stakeholder Fields
Field
Mandatory
Description
individuals
false
userId list to be used as stakeholders.
conditionMatchType
false
Match type for given conditions. Possible values are [match-all-conditions, match-any-condition]. Default value is [match-any-condition].
conditions
false
Condition array which contains match-type conditions.For more information about conditions object click here.
Conditions Fields
Field
Mandatory
Description
matchField
true
field to be matched for users. Possible values are [country, state, city, zipCode, line, tag, customProperty]. customProperty can be used while actionType is keyValue.
key
false
if matchField is customProperty, key must be given.