Confluence Cloud setting content restrictions when you have space access but not the page

I have administer and restrict_content permissions of a space. But the space contains some pages with restrictions allowing only specific users.

If I use the browser, I can access those pages if I remove all restrictions from them.

But what I want is to keep those restrictions and only add me to the pages. Must be done via REST API as I have 1000+ spaces and a ton of pages.

If I call the restrictions REST APIs (, it tells me 404 page not found.

How can I grant myself access to those restricted pages via REST API?