Sha256: 9b0b7d38ef54244943fec12ad8ebb4ed6df4433dc83511f31592e445e789d55d

Contents?: true

Size: 565 Bytes

Versions: 19

Compression:

Stored size: 565 Bytes

Contents

# Update a user's membership attributes on a team returns "Represents a user's association to a team" response

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

body = DatadogAPIClient::V2::UserTeamUpdateRequest.new({
  data: DatadogAPIClient::V2::UserTeamUpdate.new({
    attributes: DatadogAPIClient::V2::UserTeamAttributes.new({
      role: DatadogAPIClient::V2::UserTeamRole::ADMIN,
    }),
    type: DatadogAPIClient::V2::UserTeamType::TEAM_MEMBERSHIPS,
  }),
})
p api_instance.update_team_membership("team_id", "user_id", body)

Version data entries

19 entries across 19 versions & 1 rubygems

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