Sha256: 23f003ba3eadf5a74e14e790651b6b1ba9d776c5e4b9b551574f1f84a679ac15

Contents?: true

Size: 390 Bytes

Versions: 17

Compression:

Stored size: 390 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::READ_ONLY,
  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

17 entries across 17 versions & 1 rubygems

Version Path
datadog_api_client-2.29.1 examples/v1/users/UpdateUser.rb
datadog_api_client-2.28.1 examples/v1/users/UpdateUser.rb
datadog_api_client-2.27.1 examples/v1/users/UpdateUser.rb
datadog_api_client-2.26.1 examples/v1/users/UpdateUser.rb
datadog_api_client-2.26.0 examples/v1/users/UpdateUser.rb
datadog_api_client-2.25.0 examples/v1/users/UpdateUser.rb
datadog_api_client-2.24.0 examples/v1/users/UpdateUser.rb
datadog_api_client-2.22.0 examples/v1/users/UpdateUser.rb
datadog_api_client-2.21.0 examples/v1/users/UpdateUser.rb
datadog_api_client-2.20.0 examples/v1/users/UpdateUser.rb
datadog_api_client-2.19.0 examples/v1/users/UpdateUser.rb
datadog_api_client-2.18.0 examples/v1/users/UpdateUser.rb
datadog_api_client-2.17.0 examples/v1/users/UpdateUser.rb
datadog_api_client-2.16.0 examples/v1/users/UpdateUser.rb
datadog_api_client-2.15.0 examples/v1/users/UpdateUser.rb
datadog_api_client-2.14.0 examples/v1/users/UpdateUser.rb
datadog_api_client-2.13.0 examples/v1/users/UpdateUser.rb