Curl add # symbol to url

Hello I’m trying to push my war file with name artifactId##version.war to a cloud repository however when I push it up I get just artifactId and nothing else, i tried using %23 instead of # and I got this error The Path is not formatted correctly - must begin with ‘/repositories//…’ any ideas on how to fix this?