Problem: Modify Repository Content returns 403 forbidden
Expected outcome: I am trying to use the pulp_ansible
API to move a collection from the staging to the published repository in the Ansible Automation Hub.
Pulpcore version: 3.15.2
Pulp plugins installed and their versions:
- container, version 2.8.3
- ansible, version 0.10.1
- galaxy, version 4.4.1
Operating system - distribution and version:
RHEL 8.5
Other relevant data:
Listing all repositories works as expected with:
http --verify no -a admin:my_password https://my_host/pulp/api/v3/repositories/
However, trying to modify the content of a repository with:
http --verify no -a admin:my_password POST https://my_host/$REPO_HREF/modify/ add_content_units=$CONTENT_HREF base_version=$BASE_VERSION
returns a 403 forbidden
error.
Does somebody have any idea about what might be wrong? Thanks!