This topic contains 0 replies, has 1 voice, and was last updated by rt 9 years, 7 months ago.
- Topic
Hello!
I need help with updating account via REST API. I have the custom field named “billing_user_id”. I tried to fill it like this (ruby code):
123456response = Unirest.put "http://host/api/rest/latest/accounts/12",headers: {"Content-Type" => "application/json","Accept-Encoding" => "UTF-8","Authorization" => ... ,"X-WSSE" => ... },parameters: '{"account":{"additional":{"billing_user_id":"123"}}}'Account ID = 12.
Header of response is:
12{:server=>"nginx/1.2.1", :content_type=>"application/json", :connection=>"keep-alive", :x_powered_by=>"PHP/5.4.4-14+deb7u14", :set_cookie=>["CRMID=e94tjja8kpv25k7ln1e7oqqt57; path=/; HttpOnly"], :cache_control=>"no-cache", :date=>"Fri, 12 Sep 2014 14:54:31 GMT"}Response code is: 204 (no content).
So could you help me with it, please? Which is the correct way to fill this field?
Thanks a lot for the great product.
The forum ‘OroCRM – How do I? Questions’ is closed to new topics and replies.