Hi ,
I found my mistake.
The Authentication of my automation user was set to :Automation secret for machine accounts
where I had put a secret .
I had previously already tried this command with the automation user and somethimes no feedback and other times I got cannot authenticate.
I changed the setting to password and now it is working .
Thanks for the support.