I tested this in one of my systems and it was working.
curl -X GET "http://localhost:8080/cmk/check_mk/api/1.0/domain-types/folder_config/collections/all" -H "accept: application/json" -H "Authorization: Basic STRING"
Response
{
"id": "folder_config",
"domainType": "folder_config",
"links": [
{
"rel": "self",
"href": "http://localhost:8080/cmk/check_mk/api/1.0/domain-types/folder_config/collections/all",
"method": "GET",
"type": "application/json",
"domainType": "link"
},
{
"rel": "self",
"href": "http://localhost:8080/cmk/check_mk/api/1.0/domain-types/folder_config/collections/all",
"method": "GET",
"type": "application/json",
"domainType": "link"
}
],
"value": [
{
"rel": "urn:org.restfulobjects:rels/value;collection=\"all\"",
"href": "http://localhost:8080/cmk/check_mk/api/1.0/objects/folder_config/f33bf7de7b874f9b985744ff4caca30a",
"method": "GET",
"type": "application/json;profile=\"urn:org.restfulobjects:rels/object\"",
"domainType": "link",
"title": "Test"
}
],
"extensions": {}
}
There is only one subfolder in the main folder and this one is shown in value.
If i set a non existing parent folder i get an other error message as shown in your problem.
But i looks like your problem is also a problem with an folder id and that the systems finds a folder without id what normally not could be.