Skip to main content
Solved

Create new folder in the already existing folder using the API

  • October 18, 2024
  • 1 reply
  • 49 views

hi guys, can someone share with me an example of a request payload?

 

Best answer by Kian Volk

Hi Oleskii, thanks for the question! You can give this a try…

POST https://api.getguru.com/api/v1/folders/{parentFolderId}/action

Request Body:

{
"actionType": "add",
"folderEntries": [
{
"description": null,
"entryType": "folder",
"title": "folder name here"
}
],
"prevSiblingItemId": "first"
}

Setting the prevSiblingItemId field to "first" will position the folder at the very top of all other subfolders. If you'd like the folder to appear after a specific folder instead of at the top, enter the ID of the folder you want it to follow.

1 reply

Kian Volk
Community Manager
  • Community Manager
  • Answer
  • October 25, 2024

Hi Oleskii, thanks for the question! You can give this a try…

POST https://api.getguru.com/api/v1/folders/{parentFolderId}/action

Request Body:

{
"actionType": "add",
"folderEntries": [
{
"description": null,
"entryType": "folder",
"title": "folder name here"
}
],
"prevSiblingItemId": "first"
}

Setting the prevSiblingItemId field to "first" will position the folder at the very top of all other subfolders. If you'd like the folder to appear after a specific folder instead of at the top, enter the ID of the folder you want it to follow.