-2

I need to send a POST request with HTTParty, in which the body parameter must be shortDescription. Should I use:

payload = { :short_description => "Bla" }

or:

payload = { :shortDescription => "Bla" }

How can I do this?

sawa
  • 165,429
  • 45
  • 277
  • 381
John
  • 6,404
  • 14
  • 54
  • 106

1 Answers1

1

Pass payload like this:

payload = { :shortDescription => "Bla" }

or:

payload = { "shortDescription" => "Bla" }
sawa
  • 165,429
  • 45
  • 277
  • 381
Beena Shetty
  • 3,676
  • 2
  • 28
  • 31