Sha256: ba763a7a5cef86ebffe681cdab74ccad6666df7a0b82f8f70680c8ccca266b6d
Contents?: true
Size: 628 Bytes
Versions: 2
Compression:
Stored size: 628 Bytes
Contents
require "datadog_api_client" api_instance = DatadogAPIClient::V2::UsersAPI.new user_id = "00000000-0000-9999-0000-000000000000" # String | The ID of the user. body = DatadogAPIClient::V2::UserUpdateRequest.new({ data: DatadogAPIClient::V2::UserUpdateData.new({ attributes: DatadogAPIClient::V2::UserUpdateAttributes.new, id: "00000000-0000-feed-0000-000000000000", type: DatadogAPIClient::V2::UsersType::USERS }) }) # UserUpdateRequest | begin # Update a user result = api_instance.update_user(user_id, body) p result rescue DatadogAPIClient::V2::APIError => e puts "Error when calling UsersAPI->update_user: #{e}" end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
datadog_api_client-1.8.0 | examples/generated/v2/users/UpdateUser.rb |
datadog_api_client-1.7.0 | examples/generated/v2/users/UpdateUser.rb |