ERROR 403 Wordpress

I have a problem running Wordpress automation, I can’t update a post because I got this error:

{
  "response": {
    "status": 403,
    "body": "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<html><head>\n<title>403 Forbidden</title>\n</head><body>\n<h1>Forbidden</h1>\n<p>You don't have permission to access this resource.</p>\n</body></html>\n"
  },
  "request": {
    "body": {
      "_overheadLength": 178,
      "_valueLength": 261591,
      "_valuesToMeasure": [],
      "writable": false,
      "readable": true,
      "dataSize": 0,
      "maxDataSize": 2097152,
      "pauseStreams": true,
      "_released": true,
      "_streams": [],
      "_currentStream": null,
      "_insideLoop": false,
      "_pendingNext": false,
      "_boundary": "--------------------------009092341179473697481559",
      "_events": {},
      "_eventsCount": 3
    }
  }
}

However when I try to create a post it went well, anyone knows How to fix this?

PS: I have REST API enabled, no security plugins activated…


What user role does your account have in Wordpress, it seems it’s not having the correct rights.

Is admin, I dont know whats happening, it can create post but cant update one??

I am not sure either, Wordpress can be a pain in the ass when it comes to roles/permissions

Thanks for answering, i find whats the problem but i dont know how to fix it.
The issue is in the thumbnail field , for any reason my user (admin) does not have permission to update or create that field. Any ideas?

Can you screenshot which fields you are trying to update while updating the post?