requests.exceptions.HTTPError: com.atlassian.confluence.api.service.exceptions.PermissionException: Could not create content with type page

I’m presently using the Atlassian Python API to create documents on Confluence. I’ve used this same API with Jira to good effect. For some reason every time I attempt to create a Confluence page I get the following permissions error and we can’t seem to get around it:

requests.exceptions.HTTPError: com.atlassian.confluence.api.service.exceptions.PermissionException: Could not create content with type page

Nothing we do helps. We can’t seem to find a permission issue with the user within the administration panel. Any help would be appreciated.

I’ve tried many variations of space and type. I’m using the cloud API obviously with an APITOKEN. I took this code really out of the Atlassian examples: https://github.com/atlassian-api/atlassian-python-api/blob/master/examples/confluence/confluence_page_create.py

confluence = Confluence(
url=‘https://{}:{}’.format(args.host, args.port),
username=args.username[0],
password=args.apitoken[0],
api_version=“cloud”,
)

status = confluence.create_page(space="Security",
                                title="This is the title",
                                body="This is the body",
                                type="page",
                                parent_id="1573027985"
                                )