Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Status Trash of a post is not documented #54

Open
philippdolder opened this issue Jul 18, 2019 · 3 comments
Open

Status Trash of a post is not documented #54

philippdolder opened this issue Jul 18, 2019 · 3 comments

Comments

@philippdolder
Copy link

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

@kadamwhite
Copy link
Contributor

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

@TimothyBJacobs
Copy link
Member

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

@philippdolder
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants