Sha256: b6bd348a92c5536531cee28d945a8388da3da6f4ca2a40c0b0332417c2ee835b

Contents?: true

Size: 771 Bytes

Versions: 2

Compression:

Stored size: 771 Bytes

Contents

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::UsersAPI.new
body = DatadogAPIClient::V2::UserInvitationsRequest.new({ data: [DatadogAPIClient::V2::UserInvitationData.new({ relationships: DatadogAPIClient::V2::UserInvitationRelationships.new({ user: DatadogAPIClient::V2::RelationshipToUser.new({ data: DatadogAPIClient::V2::RelationshipToUserData.new({ id: "00000000-0000-0000-2345-000000000000", type: DatadogAPIClient::V2::UsersType::USERS }) }) }), type: DatadogAPIClient::V2::UserInvitationsType::USER_INVITATIONS })] }) # UserInvitationsRequest |

begin
  # Send invitation emails
  result = api_instance.send_invitations(body)
  p result
rescue DatadogAPIClient::V2::APIError => e
  puts "Error when calling UsersAPI->send_invitations: #{e}"
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
datadog_api_client-1.8.0 examples/generated/v2/users/SendInvitations.rb
datadog_api_client-1.7.0 examples/generated/v2/users/SendInvitations.rb