首页 > 解决方案 > Cant format the json body for moving a file in Graph Api

问题描述

I have a file that i want to move to a different folder in one drive and am trying to format the body as follows:

        var body = new
        {

            parentReference = 
            { 
                id= folderId;
            },
            name = fileId;
        };

I am getting an error , saying name does not exist , id does not exist . How can i fomat the body for a request in c# ?

标签: c#microsoft-graph-api

解决方案


推荐阅读