Hi,
could someone please give me some hint how to create multiple folders with rest api? Using shell script. Documentation doesn’t show this thing, is it possible to do it?
Code part, I tried, but it creates only the last item, so “gws” under “kosice”. All parent folders are existing, I’ve created them manually via GUI.
out=$(
curl \
--request POST \
--write-out "\nxxx-status_code=%{http_code}\n" \
--header "Authorization: Bearer $USERNAME $PASSWORD" \
--header "Accept: application/json" \
--header "Content-Type: application/json" \
--data '{
"name": "datanodes",
"parent": "/data/amsterdam",
"title": "Datanodes",
"name": "gws",
"parent": "/data/amsterdam",
"title": "Gateways",
"name": "datanodes",
"parent": "/data/kosice",
"title": "Datanodes",
"name": "gws",
"parent": "/data/kosice",
"title": "Gateways"
}'