Property folder in payload has a value that does not match schema

Property folder in payload has a value that does not match schema

the graph API request to create a folder in one drive is


POST /me/drive/root/children Content-Type: application/json


My code:


callMap = Map();

callMap.putAll({"name":"New Folder","folder":"{}","@microsoft.graph.conflictBehavior":"rename"});

headerMap = Map();

headerMap.putAll({"Content-Type":"application/json"});

r = invokeurl  www

[

url :"https://graph.microsoft.com/v1.0/me/drive/root/children"

type :POST

parameters:callMap.toString()

headers:headerMap

connection:"onedrive"

];

info r;

but gives the error "code": "BadRequest","message": "Property folder in payload has a value that does not match schema." Anyone have a solution?