Skip to content
English

Get hierarchical view of folders

GET
/domains/{domainID}/folders/tree
curl --request GET \
--url 'https://example.com/api/v1/domains/1/folders/tree?folderID=144115188075855870' \
--cookie grommunioAuthJwt=<grommunioAuthJwt>
domainID
required
integer

ID of the domain

folderID
integer
default: 144115188075855870

ID of the root folder

Tree of folders returned

Media typeapplication/json
object
folderid
string
name
string
container
string
children

List of child folders (in the same format as the parent)

Array<object>
object
Examplegenerated
{
"folderid": "example",
"name": "example",
"container": "example",
"children": [
{}
]
}

Validation of input parameters failed

Media typeapplication/json
object
message
string
errors

List of errors encountered during validation

Array<string>
Examplegenerated
{
"message": "example",
"errors": [
"example"
]
}

The requested resource could not be found

Media typeapplication/json
object
message
string
Examplegenerated
{
"message": "example"
}

An error occurred while processing the request

Media typeapplication/json
object
message

String representation of the exception

string
Examplegenerated
{
"message": "example"
}

The database query failed

Media typeapplication/json
object
message

Description of the error

string
Examplegenerated
{
"message": "example"
}