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 post article with custom field use api #282

Closed 631068264 closed 5 years ago

631068264 commented 5 years ago

I use /wp-json/acf/v3/posts to post an article . Get an error

No matching URLs were found and route to request method

I can use the same parameter with /wp-json/wp/v2/posts to post an article successfully.

After I post article with official api and then use acf api to update it also failed

{'code': 'cant_update_item', 'message': 'Cannot update item', 'data': {'status': 500}}

acf-to-rest-api can be used?

airesvsg commented 5 years ago

Hi @631068264,

Please, read the links below. https://developer.wordpress.org/rest-api/using-the-rest-api/authentication/ https://github.com/airesvsg/acf-to-rest-api#request-api-version

Thanks