Status Trash of a post is not documented
philippdolder opened this issue · comments
@philippdolder What would you expect to see here? trash
should not be set using the status property, because trashing should be handled using a DELETE request; I may be missing something obvious we should include, please elaborate if you're still around (I know it's an old issue!)
I think one of our difficulties here is differentiating between what data can be returned, versus what data can be sent.
@TimothyBJacobs as I recall from when I opened the issue: A retrieved post contains a bool trashed (or similar) in the returned JSON. But the documentation https://developer.wordpress.org/rest-api/reference/posts/#schema does not state it exists.
Maybe the Schema
documentation should have additional info for each field whether it can be edited directly when sending the post, or just be read when reading a post?