Create filePath via nextcloud api

Hi, how can i create a complete file path using the nextcloud api?

My MKCOL request looks like this:


But if nextcloud need to create the complete structure i get:

<?xml version="1.0" encoding="utf-8"?>

<d:error xmlns:d=“DAV:” xmlns:s=“sabre/dav”>
<s:message>Parent node does not exist</s:message>

If i just use:


it will work.

That’s correct MKCOL behavior. WebDAV (not Nextcloud) requires ancestors (parents) to exist.