User @Vishal_Kaushik is trying to use the Discourse API to unlike a post, but is getting a 403 error response saying “You are not permitted to view the requested resource.” Vishal_Kaushik has tried sending the request with Node.js and also directly from Postman, but is still getting the same error. jesus2099 suggests that the issue is due to trying to unlike a post that is too old, as there is a time limit for canceling likes. Vishal_Kaushik confirms that this is the reason. Chaboi_3000 explains that the time limit can be changed in the “post undo action window mins” site setting, which is set to 10 minutes by default.
You can change it in the post undo action window mins site setting located here: http://forum.example.com/admin/site_settings/category/all_results?filter=post%20undo%20action%20window%20mins. By default, it should be 10 minutes.