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 111 forks source link

How to insert data in post man for the custom field if type is Post Type? #264

Open Rafiqgithub opened 6 years ago

Rafiqgithub commented 6 years ago

screenshot from 2018-08-13 18-38-35 Here i have two custom fields name as text field and listings as post type. I can update the name field.But unable to update this post type field not getting the proper format?

Rafiqgithub commented 6 years ago

screenshot from 2018-08-13 18-42-38

Mulli commented 6 years ago

try { {"id":"dddd"}, "test": "whatever"}} in the body. Select json/app..

Rafiqgithub commented 6 years ago

@Mulli Tried your solution. Still not able to update

Mulli commented 6 years ago

You have to write your own update function. I expect to have one in 6 week (first 3 are vacation...) If this works for you, stay tuned... If you find something better - let me know :-) Thanks!

Rafiqgithub commented 6 years ago

@Mulli Thanks for the quick reply. Sure, I will wait for your solution meanwhile, I will try other solutions.