From 2a33ba56d7ba078075e9a852d10cdc929870c7cc Mon Sep 17 00:00:00 2001 From: Blag Date: Wed, 8 May 2024 16:43:19 -0400 Subject: [PATCH] Upate message.rb to add clean conversations Added Clean Conversations --- lib/nylas/resources/messages.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/nylas/resources/messages.rb b/lib/nylas/resources/messages.rb index 4465e70b..14b9fffb 100644 --- a/lib/nylas/resources/messages.rb +++ b/lib/nylas/resources/messages.rb @@ -71,6 +71,18 @@ def destroy(identifier:, message_id:) [true, request_id] end + # Clean a message. + # + # @param identifier [String] Grant ID or email account from which to clean a message. + # @param request_body [Hash] The options to clean a message with + # @return [Array(Hash)] The list of clean messages. + def clean_messages(identifier:, request_body:) + put( + path: "#{api_uri}/v3/grants/#{identifier}/messages/clean", + request_body: request_body + ) + end + # Send a message. # # @param identifier [String] Grant ID or email account from which to delete an object.