Hi MadhuSudanSingh-1785,
You need to set the Content-Type header as application/json;odata=verbose, as the below:
And the body:
{
"__metadata": {
"type": "SP.Data.Shared_x0020_DocumentsItem"
},
"FileLeafRef": "NewFolderName"
}
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.