airesvsg / acf-to-rest-api

Exposes Advanced Custom Fields Endpoints in the WordPress REST API
https://wordpress.org/plugins/acf-to-rest-api/
1.33k stars 110 forks source link

How to post values to ACF fields #335

Closed mkchetan25 closed 4 years ago

mkchetan25 commented 4 years ago

Hi Team,

I'm using ACF to REST plugin to get values through REST api call. It works good. But, I'm confused on the JSON to be sent create an item with post_object ACF field.

please guide me on it.

mkchetan25 commented 4 years ago

Sry,

It's a stupid question but was confused in finding the JSON format to specify ACF fields in POST. Finally, got it.

Here is format: { ID: 10 ... Fields: { "Your custom fields: '', "Your custom fields2: '', } }