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