Class: SchwarmCli::Client::UserMessages

Inherits:
Resource
  • Object
show all
Defined in:
lib/schwarm_cli/client/user_messages.rb

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from SchwarmCli::Client::Resource

Instance Method Details

#create(task_id:, content:) ⇒ Object



6
7
8
# File 'lib/schwarm_cli/client/user_messages.rb', line 6

def create(task_id:, content:)
  post("/api/v2/tasks/#{task_id}/messages", { user_message: { content: } }).body
end