API talk:Rollback

When I try to use this command using curl command, it gives the error Permission Denied, even though I am supplying right username and password. Any suggestions.