docs icon indicating copy to clipboard operation
docs copied to clipboard

Status Trash of a post is not documented

Open philippdolder opened this issue 6 years ago • 3 comments

https://developer.wordpress.org/rest-api/reference/posts/#retrieve-a-post

philippdolder avatar Jul 18 '19 06:07 philippdolder

@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!)

kadamwhite avatar Mar 31 '20 13:03 kadamwhite

I think one of our difficulties here is differentiating between what data can be returned, versus what data can be sent.

TimothyBJacobs avatar Mar 31 '20 19:03 TimothyBJacobs

@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?

philippdolder avatar Apr 01 '20 10:04 philippdolder