Sha256: b8e6ac62d8243c686a19a6912e8bc60b1c047e0a99cef8ecc96ac7354de33af1

Contents?: true

Size: 727 Bytes

Versions: 1

Compression:

Stored size: 727 Bytes

Contents

require "datadog_api_client"

DatadogAPIClient::V2.configure do |config|
  config.unstable_operations[:update_incident_team] = true
end

api_instance = DatadogAPIClient::V2::IncidentTeamsAPI.new
team_id = "team_id_example" # String | The ID of the incident team.
body = DatadogAPIClient::V2::IncidentTeamUpdateRequest.new({ data: DatadogAPIClient::V2::IncidentTeamUpdateData.new({ type: DatadogAPIClient::V2::IncidentTeamType::TEAMS }) }) # IncidentTeamUpdateRequest | Incident Team Payload.

begin
  # Update an existing incident team
  result = api_instance.update_incident_team(team_id, body)
  p result
rescue DatadogAPIClient::V2::APIError => e
  puts "Error when calling IncidentTeamsAPI->update_incident_team: #{e}"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
datadog_api_client-1.7.0 examples/generated/v2/incident-teams/UpdateIncidentTeam.rb