I have created a WordPress credential and it works fine for the WordPress node. Now I want to make a HTTP DELETE Request to the following endpoint: https://www.saudeplena.org/wp-json/wp/v2/comments/
and the same credential that otherwise works is giving me a permission error. How is that, the Administrator has no permissions?
Hey @Martin_Neumann , you need to make sure the URL resolves to the correct path. You are using an expression in the URL, https://www.saudeplena.org/wp-json/wp/v2/comments/{{ $('Webhook').item.json.body.comment_id }}. Perhaps the expression produces undefined value.
If I follow that same URL without authenticating I get the same message, In this case I suspect either the comment is not public or maybe it doesn’t exist which is why it says the API can’t read it.
Yes the comment is not public, but the admin is supposed to be able to manipulate it. The credentials I use to access are supposed to be admin credentials.
Are you also able to get the comment? We don’t control what the api allows access to so assuming the ID and credential is correct this could be an issue with Wordpress. Have you tried making the same request with something like Postman to see if that works?
In WP Admin the comment is pending approval. What happened is that I could read all public resources but nothing that required authentication. Found out the problem was with the credentials.