wp-net / WordPressPCL

This is a portable library for consuimg the WordPress REST-API in (almost) any C# application
MIT License
335 stars 131 forks source link

CustomRequest Update method creates, not updates. #317

Closed richardaubin closed 2 years ago

richardaubin commented 2 years ago

When attempting to update a custom post type, the updateasync method simply calls the createasync method and doesn't try to update the existing post id, and throws a cannot create existing post exception.

image

richardaubin commented 2 years ago

Found solution in unit tests.