Sha256: 53ea784dc94c0fe54ab142bdeba992fc36d90ca1a45ab101c97f09c5911f25e1

Contents?: true

Size: 638 Bytes

Versions: 15

Compression:

Stored size: 638 Bytes

Contents

# Create a team with V2 fields returns "CREATED" response

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

body = DatadogAPIClient::V2::TeamCreateRequest.new({
  data: DatadogAPIClient::V2::TeamCreate.new({
    attributes: DatadogAPIClient::V2::TeamCreateAttributes.new({
      handle: "test-handle-a0fc0297eb519635",
      name: "test-name-a0fc0297eb519635",
      avatar: "🥑",
      banner: 7,
      visible_modules: [
        "m1",
        "m2",
      ],
      hidden_modules: [
        "m3",
      ],
    }),
    type: DatadogAPIClient::V2::TeamType::TEAM,
  }),
})
p api_instance.create_team(body)

Version data entries

15 entries across 15 versions & 1 rubygems

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