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?