hi, im building a pipeline to promote nuget packages from one repo to another and since the pipeline executes on windows its via powershell. im using my own api key and my user has nx-all rights as i am just testing here and seeing how it works.
via the swagger i can delete the package via the id , no problems, but when i go via powershell i get 403
*UNKNOWN org.sonatype.nexus.siesta.internal.AuthorizationExceptionMapper - (ID 05c628e3-c54f-4a51-a48f-7d706bb02509) Response: [403] (no entity/body); mapped from: org.apache.shiro.authz.AuthorizationException
i can search via the api for package ids etc, its just the delete that doesnt work. do i have to enable something in nexus settings to be aple to delete via api?
ps code: Invoke-RestMethod -Uri https://$NexusUrl/service/rest/v1/components/$PackageId -Method Delete -Headers @{ “Authorization” = “apikey $ApiKey” }