Took me more than a night of sleep .
Yes indeed @levi was correct, it needed a candid-parameter to update the code of the canister because my canister constructor takes a parameter, the user principal.
That solved this question but then I had to encode the parameters. This was solved today in my following question: Encode Principal to Candid arguments - #10 by peterparker