Sha256: c4ad1e99709faf2c448406721bd9681e937a76cd0c250dc07306068aafe6a42a

Contents?: true

Size: 389 Bytes

Versions: 18

Compression:

Stored size: 389 Bytes

Contents

# Update a user returns "User updated" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V1::UsersAPI.new

body = DatadogAPIClient::V1::User.new({
  access_role: DatadogAPIClient::V1::AccessRole::STANDARD,
  disabled: false,
  email: "test@datadoghq.com",
  handle: "test@datadoghq.com",
  name: "test user",
})
p api_instance.update_user("test@datadoghq.com", body)

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
datadog_api_client-2.12.0 examples/v1/users/UpdateUser.rb
datadog_api_client-2.11.0 examples/v1/users/UpdateUser.rb
datadog_api_client-2.10.0 examples/v1/users/UpdateUser.rb
datadog_api_client-2.9.0 examples/v1/users/UpdateUser.rb
datadog_api_client-2.8.0 examples/v1/users/UpdateUser.rb
datadog_api_client-2.7.0 examples/v1/users/UpdateUser.rb
datadog_api_client-2.6.0 examples/v1/users/UpdateUser.rb
datadog_api_client-2.5.0 examples/v1/users/UpdateUser.rb
datadog_api_client-2.4.0 examples/v1/users/UpdateUser.rb
datadog_api_client-2.3.0 examples/v1/users/UpdateUser.rb
datadog_api_client-2.2.0 examples/v1/users/UpdateUser.rb
datadog_api_client-2.1.0 examples/v1/users/UpdateUser.rb
datadog_api_client-2.0.2 examples/v1/users/UpdateUser.rb
datadog_api_client-2.0.1 examples/v1/users/UpdateUser.rb
datadog_api_client-2.0.0 examples/v1/users/UpdateUser.rb
datadog_api_client-1.11.0 examples/v1/users/UpdateUser.rb
datadog_api_client-1.10.0 examples/v1/users/UpdateUser.rb
datadog_api_client-1.9.0 examples/v1/users/UpdateUser.rb