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
department- Organizes Departments.form- Organizes Forms.infoboardChannel- Organizes InfoboardChannels.report- Organizes reports.reportDefinition- Organizes report definitions.role- Organizes Roles.survey- Organizes Surveys.taskAssignment- Organizes TaskAssignments.taskTemplate- Organizes TaskTemplates.
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 useen-US.
List
List folders visible to the authenticated user.
Definition
GET /api/folders
Request Keys
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
folder
integer
Folder ID.
Example Request
Example Response
Create
Create a folder.
Definition
POST /api/folders
Request Keys
parent_id
integer | null
null
Parent folder ID.
lang_id
string
System language
Language key for name.
name*
string
-
Folder name.
show_on_menu
boolean
false
Show this folder in module navigation.
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
folder
integer
Folder ID.
Request Keys
parent_id
integer | null
Updated parent folder ID.
lang_id
string
Updated language key.
icon_id
integer
Updated icon ID.
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
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