How to create a folder named "my sub folder" using the WegDAV API?

want to create a folder with spaces / blanks as part of the name. How can I do that from outside NC using an API like cURL ?
Are spaces as part of the URL supported by the API
Example: name of the folder “my Sub A”

curl -u <username>:<password> -T 'my Test File.txt' " Sub A"


Have you tried to use the replacement code “%20” for a white space in an url?

“%20” doesn’t work.
curl -u : -T ‘my Test File.txt’ “

<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="">
  <s:message>PUT is not allowed on non-files.</s:message>

Maybe it depends on the configuration?
Have NC 18.0.3 running as docker container / RPi4 with apache, insecure.