Github app create review comment results in "Resource not accessible by integration"

Following the docs to create a review comment on a PR

The docs says a “Works with GitHub Apps” so I follow this docs to authenticate as an app installation

url = f"{repo_owner}/{repo_name}/pulls/{pull_number}/comments", data=data headers={'Authorization': f'token {access_token}'})

results in 403 and {‘message’: ‘Resource not accessible by integration’, ‘documentation_url’: ‘…’}

What am I doing wrong?

Cause was the github app permissions did not cover creating review comments