Windchill REST Services > Windchill REST Services Domain Capabilities > Examples for Basic REST Operations > Examples for the PTC Data Administration Domain > Create a Folder and Subfolder
  
Create a Folder and Subfolder
This example shows you how to create a folder and subfolder. Use the following POST URI with the request body.
URI to Create a Folder
POST /Windchill/servlet/odata/DataAdmin/Containers(<oid>)/Folders HTTP/1.1
URI to Create a Subfolder
POST /Windchill/servlet/odata/DataAdmin/Containers(<oid>)/Folders(<oid>)/Folders HTTP/1.1
You can pass the following information in the request header and body for both the URIs.
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Name": "Demo",
"Description": "Folder for CAD parts"
}