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

Can't update / post ACF fields in comments #377

Open edouardflowasia opened 3 years ago

edouardflowasia commented 3 years ago

Hi there,

First, i'd like to thank you for your awesome work on this plugin.

I have an issue when trying to populate a custom field on comments. I've added a custom fields "note" with ACF. I am trying to post a comment and set a value to this field, however i've tried multiple solutions and can't make it work.

This is an example of JSON I am trying to POST on : https://mydomain.com/wp-json/wp/v2/comments/5


{
    "fields": {
        "note": "4"
    }
}

I have also tried to add a new comment but the custom field doesn't go through.

Thanks for your help,