Sha256: 998654dc7b25e91f85cfed072ba328fd6f726ef9e9474d21670b15761b37fd76

Contents?: true

Size: 852 Bytes

Versions: 15

Compression:

Stored size: 852 Bytes

Contents

# Update a team returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::TeamsAPI.new

# there is a valid "dd_team" in the system
DD_TEAM_DATA_ATTRIBUTES_HANDLE = ENV["DD_TEAM_DATA_ATTRIBUTES_HANDLE"]
DD_TEAM_DATA_ATTRIBUTES_NAME = ENV["DD_TEAM_DATA_ATTRIBUTES_NAME"]
DD_TEAM_DATA_ID = ENV["DD_TEAM_DATA_ID"]

body = DatadogAPIClient::V2::TeamUpdateRequest.new({
  data: DatadogAPIClient::V2::TeamUpdate.new({
    attributes: DatadogAPIClient::V2::TeamUpdateAttributes.new({
      handle: DD_TEAM_DATA_ATTRIBUTES_HANDLE,
      name: "Example Team updated",
      avatar: "🥑",
      banner: 7,
      hidden_modules: [
        "m3",
      ],
      visible_modules: [
        "m1",
        "m2",
      ],
    }),
    type: DatadogAPIClient::V2::TeamType::TEAM,
  }),
})
p api_instance.update_team(DD_TEAM_DATA_ID, body)

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
datadog_api_client-2.28.1 examples/v2/teams/UpdateTeam.rb
datadog_api_client-2.27.1 examples/v2/teams/UpdateTeam.rb
datadog_api_client-2.26.1 examples/v2/teams/UpdateTeam.rb
datadog_api_client-2.26.0 examples/v2/teams/UpdateTeam.rb
datadog_api_client-2.25.0 examples/v2/teams/UpdateTeam.rb
datadog_api_client-2.24.0 examples/v2/teams/UpdateTeam.rb
datadog_api_client-2.22.0 examples/v2/teams/UpdateTeam.rb
datadog_api_client-2.21.0 examples/v2/teams/UpdateTeam.rb
datadog_api_client-2.20.0 examples/v2/teams/UpdateTeam.rb
datadog_api_client-2.19.0 examples/v2/teams/UpdateTeam.rb
datadog_api_client-2.18.0 examples/v2/teams/UpdateTeam.rb
datadog_api_client-2.17.0 examples/v2/teams/UpdateTeam.rb
datadog_api_client-2.16.0 examples/v2/teams/UpdateTeam.rb
datadog_api_client-2.15.0 examples/v2/teams/UpdateTeam.rb
datadog_api_client-2.14.0 examples/v2/teams/UpdateTeam.rb