{"id":4360836,"date":"2013-11-28T03:39:23","date_gmt":"2013-11-28T03:39:23","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/update-custom-fields-of-post\/"},"modified":"2016-08-21T13:00:33","modified_gmt":"2016-08-21T13:00:33","slug":"update-custom-fields-of-post","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/update-custom-fields-of-post\/","title":{"rendered":"Update Custom Fields of Post"},"content":{"rendered":"<p>Is there a method that supports updating (or creation) of custom fields?<\/p>\n<p>Updating the title seems simple (eg): <code>\/api\/posts\/update_post\/?post_type=myob_product&amp;id=8&amp;title=New%20Product%20Title&amp;nonce=48c6acc362<\/code><\/p>\n<p>It seems that appending custom_tags only filters out what is returned, but ideally, I could append:<br \/>\n<code>&amp;custom_fields[tagLine]=Sweet%20Product%20Tag%20Line<\/code> and the update_post would act accordingly.<\/p>\n<p>Thanks very much, loving this plugin<\/p>\n<p>https:\/\/wordpress.org\/plugins\/json-api\/<\/p>\n","protected":false},"template":"","class_list":["post-4360836","topic","type-topic","status-closed","hentry","topic-tag-custom_fields","topic-tag-update_post"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4360836","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4360836\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=4360836"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}