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

ManualChapters

Introduction

ManualChapters organize ManualEntries in a nested structure and define the Entity Permissions inherited by their descendants.

Model Definition

Alias

manualChapter

Relations

Key
Relation
Type
Relation Field(s)

user

Belongs to

user_id

parent

Belongs to

parent_id

children

Has many

parent_id

manualEntries

Has many

manual_chapter_id

icon

Belongs to

icon_id

entityPermissions

Morph many

entity_permissions.restrictable_type, entity_permissions.restrictable_id

tags

Belongs to many

tag_taggable.taggable_type, tag_taggable.taggable_id

Computed Properties

  • hash - Hashed representation of the chapter id.

Capabilities

  • Entity Permissions - Chapters own direct view and administrate grants; descendant chapters and entries are additionally constrained by their ancestors.

  • URL Context - Chapter URLs resolve to access-checked context information.

  • Translations - The title field is translatable.

  • Notifications - Creating or updating an active chapter can notify eligible users selected through its inherited access chain.

List

List ManualChapters visible to the current authenticated User.

Definition

GET /api/manual/chapters

Behavior

  • The Restricted Scope combines direct view grants with the access constraints of every parent chapter.

Example Request

Example Response

Show

Show a single ManualChapter by ID, hash, or slug.

Definition

GET /api/manual/chapters/{manualChapter}

Route Parameters

Parameter
Type
Description

manualChapter

integer | string

ManualChapter ID, hash, or slug.

Behavior

  • Access is checked recursively against the chapter and every parent chapter.

Example Request

Example Response

Admin: List

List ManualChapters available in the administration scope.

Definition

GET /api/administration/manual/chapters

Behavior

  • Administration permissions determine whether the result is unrestricted or limited to owned and permitted chapters.

  • Soft-deleted chapters are included.

Example Request

Example Response

Admin: Show

Show a single ManualChapter in the administration scope.

Definition

GET /api/administration/manual/chapters/{manualChapter}

Route Parameters

Parameter
Type
Description

manualChapter

integer | string

ManualChapter ID, hash, or slug.

Behavior

  • The user must have unrestricted chapter administration access, own the chapter, or receive an applicable administrate grant through its hierarchy.

Example Request

Example Response

Admin: Create

Create a new ManualChapter.

Definition

POST /api/administration/manual/chapters

Request Keys

Key
Type
Default
Description

parent_id

integer | null

null

ID of the parent ManualChapter.

lang_id

string

system language

Language key for the translatable title.

icon_id

integer

configured chapter icon

ID of the Icon used by the chapter.

title*

string

-

Chapter title, unique among siblings with the same parent_id.

slug

string

slugged title

Chapter slug, unique among siblings with the same parent_id.

enumeration

boolean

false

Whether clients should enumerate the chapter.

active

boolean

true

Whether the chapter is active.

sort_number

integer

end of parent

Position among chapters with the same parent_id.

entity_permissions

array

-

Direct EntityPermissions assigned to the chapter.

Keys with * are required.

Behavior

  • The authenticated user becomes the owner; a client-provided user_id is ignored.

  • The slug is normalized from slug or title, and missing, invalid, or out-of-range sort_number values are normalized within the selected parent.

  • Creating an active chapter can notify eligible users selected by its direct and inherited view grants.

Example Request

Example Response

Admin: Update

Update an existing ManualChapter.

Definition

PUT /api/administration/manual/chapters/{manualChapter}

Route Parameters

Parameter
Type
Description

manualChapter

integer | string

ManualChapter ID, hash, or slug.

Request Keys

Key
Type
Description

parent_id

integer | null

New parent chapter ID.

lang_id

string

New language key for the translatable title.

icon_id

integer

New Icon ID.

title

string

New title, unique among siblings with the resulting parent_id.

slug

string

New slug, unique among siblings with the resulting parent_id.

enumeration

boolean

Whether clients should enumerate the chapter.

active

boolean

Whether the chapter is active.

sort_number

integer

New position among chapters with the resulting parent_id.

entity_permissions

array

Complete direct EntityPermissions state to synchronize.

Behavior

  • A client-provided user_id is ignored. Changing the parent, title, or slug transfers ownership to the authenticated user.

  • When parent_id is omitted, the current parent is retained for validation. Changing the parent or sort position normalizes both affected sibling orders.

  • The slug is normalized from an explicitly supplied slug or the updated title.

  • Changing title removes stored translations for the previous title. Activating a chapter or changing its title can trigger notifications.

Example Request

Example Response

Admin: Delete

Delete an existing ManualChapter.

Definition

DELETE /api/administration/manual/chapters/{manualChapter}

Route Parameters

Parameter
Type
Description

manualChapter

integer | string

ManualChapter ID, hash, or slug.

Behavior

  • The chapter is soft-deleted, its position is removed from the sibling order, and its notifications are deleted.

  • Descendant chapters and contained entries are deleted recursively.

Example Request

Example Response

Last updated