Generate an Unused Name for a New Folder
Applies To: Windows Server 2012 Essentials
Generates an unused name to use for a new folder.
URI Template
POST services/builtin/FileOperationService.svc/folder?path={path}&language={language}
{path}
A network path that begins with the server name, in the format /ServerName/FolderPath.
{language}
The language/region code (such as en-us
) of the new folder name.
Sample Request
POST https://www.contoso.com/services/builtin/FileOperationService.svc/folder?path=servername/Company/abc123&language=en-us HTTP/1.1
Accept: application/xml
Cookie: ASP.NET_SessionId=********************
Canary: *********************
Host: domainname
Content-Length: 0
Sample Response
HTTP/1.1 200 OK
<string xmlns="https://schemas.microsoft.com/2003/10/Serialization/">New Folder</string>
Error Codes
Error Code | Error Message |
---|---|
400 | The language/region code is not valid, or the path is too long or has unsupported characters (such as *\|"<> ). |
401 | Access is denied to the requested resource. |
404 | The path does not exist. |