For the complete documentation index, see llms.txt. This page is also available as Markdown.

Folders

Introduction

Folders organize supported resources into a hierarchy. A folder type determines which resource it can contain and which module permission controls access.

Model Definition

Types

Capabilities

  • Entity Permissions - Folders own direct grants; the Restricted Scope controls which folders are returned or accessible for the relevant module operation.

  • Translations - Localizes name; examples use en-US.

List

List folders visible to the authenticated user.

Definition

GET /api/folders

Request Keys

Key
Type
Default
Description

limit

integer

No limit

Maximum number of folders.

filter

object

No filters

Value filters applied before permission checks.

sort

string

Repository order

Sort expression.

Behavior

The response excludes folders for which the current user lacks the folder type's view permission or effective Entity Permission.

Example Request

Example Response

Show

Show one visible folder.

Definition

GET /api/folders/{folder}

Route Parameters

Parameter
Type
Description

folder

integer

Folder ID.

Example Request

Example Response

Create

Create a folder.

Definition

POST /api/folders

Request Keys

Key
Type
Default
Description

parent_id

integer | null

null

Parent folder ID.

lang_id

string

System language

Language key for name.

icon_id

integer

Default folder icon

Existing Icon ID.

type*

string

-

Selects one of the supported Types.

name*

string

-

Folder name.

show_on_menu

boolean

false

Show this folder in module navigation.

entity_permissions

object[]

No direct grants

Complete direct Entity Permission grant set.

Keys with * are required.

Behavior

The authenticated user is stored as user_id. Submitted Entity Permissions are attached to the new folder after creation.

Example Request

Example Response

Update

Update a folder.

Definition

PUT /api/folders/{folder}

Route Parameters

Parameter
Type
Description

folder

integer

Folder ID.

Request Keys

Key
Type
Description

parent_id

integer | null

Updated parent folder ID.

lang_id

string

Updated language key.

icon_id

integer

Updated icon ID.

type

string

Selects one of the supported Types.

name

string

Updated folder name.

show_on_menu

boolean

Updated menu visibility.

entity_permissions

object[]

Complete replacement set of direct grants.

Behavior

When entity_permissions is submitted, the folder's direct grants are synchronized to that complete array. The authenticated user becomes the stored user_id for the update.

Example Request

Example Response

Delete

Delete a folder.

Definition

DELETE /api/folders/{folder}

Route Parameters

Parameter
Type
Description

folder

integer

Folder ID.

Behavior

Deletion also deletes child folders recursively and detaches contained resources by setting their folder reference to null.

Example Request

Example Response

Last updated