Create Folder
To create a new folder in Shufflrr call the Create Folder API. Make sure to set the parentFolderId to the Folder ID that want the new folder created in.
| Method type | POST |
| API Location | https://wwwapi.shufflrr.com/api/folders |
| Swagger documentation location | https://wwwapi.shufflrr.com/api/docs/ui/index#!/Folders/Folders_Post |
Sample Request Body
{
"fileType": "Folder",
"isFolder": true,
"isFollowedByCurrentUser": true,
"userPermissions": "16777215",
"id": 0,
"name": "New Folder Name",
"description": "This is the description for my folder",
"createdDate": "2020-10-21T12:48:10.504Z",
"modifiedDate": "2020-10-21T12:48:10.504Z",
"createdById": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"createdByName": "API User",
"modifiedById": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"modifiedByName": "API User",
"parentFolderId": XXXXXXXX,
"portalId": 2261101,
"deleted": false
}
Keep id set to 0 in the request body. Shufflrr will assign an ID when it creates the folder
Make sure to replace the values in the above Request Body with the appropriate Values:
| Request Body Value | API call | Value or Element(s) to use from API call |
|---|---|---|
| name | N/A | Use the name of the folder from your sending system |
| description | N/A | Use the description of the folder from your sending system |
| createdDate | N/A | Use the current date and time |
| modifiedDate | N/A | Use the current date and time |
| createdById | Login | id |
| modifiedById | Login | id |
| parentFolderId | All Folders | id |
| portalId | Login | portalId |
If you wish to store the ID of folders when they are created, use the id returned in the response body for each folder.