Youcef Developer
2/4/2020 - 4:22 AM

Post/Put ACF Fields

{ "title" : "Ulysses", "acf": { "publisher": "James Joyce" } "status" : "publish" }

for updating acf->publisher field in wordpress api, you should use "fields" instead of "acf". Or use the filter acf/rest_api/key to change the key fields.

Source: https://github.com/airesvsg/acf-to-rest-api/issues/196

<?php

// change the key fields.
add_filter( 'acf/rest_api/key', function( $key, $request, $type ) {
    return 'acf_fields';
}, 10, 3 );