Update content restrictions with API v1

Hi, I’m trying to add users to the restrictions of a page (the page has no restrictions), impersonating with my user who has admin permissions and when using the endpoint Add user to content restriction I’m getting an error 400 (Bad Request) with the following message:

'com.atlassian.confluence.api.service.exceptions.BadRequestException: Provided ContentRestrictions evicts current user (you) from: [read]. Must include yourself in "user" sections for READ and/or UPDATE when restricting those operations. Must not provide restrictions which when applied result in current situation.'

I tried to add my user with write permissions and I get the same error (missing edit permissions). I did it with view permissions but the same happened (missing write permissions).
Is there any way I can send write and view permissions to avoid this error?

Can you share your request body? The format for the restrictions calls ist quite complex.

I was sending this:
{ accountId: userId }

The funny thing is now I’m testing with this endpoint Update restrictions and it is giving me the same error. The body I’m sending is this one:

{
      results: [
        {
          operation: 'update',
          restrictions: {
            user: {
              results: users,
            },
          },
        },
      ],
    }

users is the array with the users I got from using the Get user endpoint.

I forgot to mention that the user I’m adding is mine.