SharedItems
Introduction
Shared Items provide stable URLs for supported resources. Each item selects a target through targetable_type and targetable_id; its type, redirect_type, and config control how that target is exposed.
When a Shared Item redirects with a grant token, the generated target URL can grant temporary access according to the item's Entity Permissions. A plain redirect only succeeds when the user can already access the target.
Model Definition
Alias
sharedItem
Capabilities
Entity Permissions - Direct
viewgrants restrict who can open a Shared Item, while directadministrategrants restrict administration access.URL Context - Resolves stable Shared Item URLs and exposes target context only when the redirect and access rules allow it.
Relations
targetable
Target resource
Morph to
targetable_type, targetable_id
Types
calendarEvent- Shares a Calendar Event with an emptyconfigobject.filemanagerDirectory- Shares a Filemanager Directory with type-specific configuration.filemanagerFile- Shares a Filemanager File with an emptyconfigobject.form- Shares a Form with an emptyconfigobject.formMessage- Shares a Form Message with an emptyconfigobject.infoboardComment- Shares an Infoboard Comment with an emptyconfigobject.infoboardPost- Shares an Infoboard Post with type-specific configuration.manualChapter- Shares a Manual Chapter with type-specific configuration.manualEntry- Shares a Manual Entry with type-specific configuration.taskExecution- Shares a Task Execution with an emptyconfigobject.
Redirect Types
none- Does not redirect to the target.redirect- Redirects only when the user can already access the target.redirectWithGrantToken- Adds a grant token to the target URL when the user hasviewaccess to the Shared Item.
Target URL Types
The stable Shared Item URL accepts one of these boolean query parameters to select an alternate target URL:
showFileContent- Uses the target's inline file-content URL when available.downloadFileContent- Uses the target's file-download URL when available.filePoster- Uses the target's poster-content URL when available.
List
List Shared Items the authenticated user may view.
Definition
GET /api/shared-items
Request Keys
limit
integer
No limit
Maximum number of Shared Items.
filter
object
No filters
Value filters applied before access checks.
sort
string
Repository order
Sort expression.
relations
string
Default relations
Pipe-separated relations to include.
Behavior
The list applies direct view Entity Permissions to restricted items and excludes soft-deleted items.
Example Request
Example Response
Show
Show one Shared Item the authenticated user may view.
Definition
GET /api/shared-items/{sharedItem}
Route Parameters
sharedItem
string
Shared Item UUID.
Example Request
Example Response
Admin: List
List Shared Items the authenticated user may administrate.
Definition
GET /api/administration/shared-items
Request Keys
limit
integer
No limit
Maximum number of Shared Items.
filter
object
No filters
Value filters applied before administration access checks.
sort
string
Repository order
Sort expression.
relations
string
Default relations
Pipe-separated relations to include.
Behavior
Users with global edit or delete access can administrate every item. Otherwise direct administrate Entity Permissions restrict items that carry grants; unrestricted items remain visible. This endpoint includes soft-deleted items.
Example Request
Example Response
Admin: Show
Show one Shared Item the authenticated user may administrate.
Definition
GET /api/administration/shared-items/{sharedItem}
Route Parameters
sharedItem
string
Shared Item UUID.
Example Request
Example Response
Admin: Create
Create a Shared Item.
Definition
POST /api/administration/shared-items
Request Keys
targetable_type*
string
-
Target resource alias allowed for type.
targetable_id*
integer | string
-
Existing target resource ID.
config
object
Type defaults
Complete type-specific configuration.
Keys with * are required.
Behavior
The authenticated user is stored as user_id. The target must match the selected type, and the user must be allowed to share that target. Omitted configuration is filled from the type defaults.
Example Request
Example Response
Admin: Update
Update a Shared Item.
Definition
PUT /api/administration/shared-items/{sharedItem}
Route Parameters
sharedItem
string
Shared Item UUID.
Request Keys
redirect_type
string
Updated redirect behavior.
targetable_type
string
Updated target resource alias allowed for the item's immutable type.
targetable_id
integer | string
Updated existing target resource ID.
config
object
Complete replacement type-specific configuration.
entity_permissions
object[]
Complete replacement set of direct grants.
Behavior
user_id and type cannot be changed. The existing configuration is preserved when config is omitted; when submitted, config replaces the stored object. When entity_permissions is submitted, direct grants are synchronized to the complete array.
Example Request
Example Response
Admin: Delete
Soft-delete a Shared Item.
Definition
DELETE /api/administration/shared-items/{sharedItem}
Route Parameters
sharedItem
string
Shared Item UUID.
Example Request
Example Response
Last updated