Hi community – I’d like to change a few ACF fields to live on a standalone Options page instead of displaying on a specific post.
I am currently able to update their values via POST requests to the /wp-json/wp/v2/pages/$POST_ID endpoint. However, when I moved the fields to an options page, I wasn’t sure how to go about continuing to update their values via a POST/REST API request. Is that something that is possible? If so, what are the endpoints we should use for that?
Thank you!
Update: if PHP is a possibility for your use case, you can use https://developer.wordpress.org/reference/functions/update_option/ to perform the update.
The relevant option key can be found via inspecting the wp_options database; in my case, it was options_${field_name}.