Error 401 API REST with the listing update endpoint


I have a custom form from where I would like to let the vendor update less attributes than in the original update listing form. I think I have to send the form and send the post information to the API REST endpoint:


The problem is that I obtain “401 error” from response. I think it could be related to the authentication. Do I have to include some namespace/function or something like that?

Thanks and regards,

Sorry for the delay.

Yes, this error is related to authentication. Please make sure that the request user is authenticated and it’s either the site admin or the listing author WordPress REST API Authentication – Wtyczka WordPress | Polska