While technically sound syntax, it does not do what you think.
'custom_fields' => { { "key" => "height", "value" => 500 }, { "key" => "width", "value" => 750 } },
roughly equivalent to something like:
'custom_fields' => { 'HASH(0x881a168)' => { "key" => "width", "value" => 750 } },
which, of course, is not what you want. (Part 0x881a168 will change, this is actually the address where hashref is stored.)
I am not sure what the correct syntax is for custom fields. You can try
'custom_fields' => [ { "key" => "height", "value" => 500 }, { "key" => "width", "value" => 750 } ],
which sets custom_fields to a hash array. But this may be wrong. It depends on what send_request expects.
cjm
source share