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

Tags

Introduction

Tags are used to categorize and organize various entities within the system. They help in filtering, searching, and managing content efficiently across modules.

Tags can be grouped into TagGroups and are assignable to different TaggableSections.

Model Definition

Alias

tag

Relations

Key
Relation
Type
Relation Field(s)

user

Belongs to

user_id

tagGroups

Belongs to many

tag_tag_group.tag_id

restrictedTaggableSections

Morph to many

taggable_section_restrictbale.restrictable_type, taggable_section_restrictbale.restrictable_id

List by Section

List visible Tags for one taggable section.

Definition

GET /api/tags/allowed/{taggableSection}

Route Parameters

Parameter
Type
Description

taggableSection

string

Existing TaggableSection ID.

Request Keys

Key
Type
Default
Description

selects

string

All fields

Comma-separated fields to return.

relations

string

Default relations

Pipe-separated relations to include.

Example Request

Example Response

Admin: List

List all Tags in administration scope.

Definition

GET /api/administration/tags

Request Keys

Key
Type
Default
Description

selects

string

All fields

Comma-separated fields to return.

relations

string

Default relations

Pipe-separated relations to include.

limit

integer

No limit

Maximum number of active and deleted tags.

Example Request

Example Response

Admin: Show

Show one Tag in administration scope.

Definition

GET /api/administration/tags/{tag}

Route Parameters

Parameter
Type
Description

tag

integer

Tag ID; deleted tags are included.

Request Keys

Key
Type
Default
Description

selects

string

All fields

Comma-separated fields to return.

relations

string

Default relations

Pipe-separated relations to include.

Example Request

Example Response

Admin: Create

Create a new Tag.

Definition

POST /api/administration/tags

Request Keys

Key
Type
Default
Description

title *

string

–

The name of the Tag.

color *

string

–

The color code (HEX) for the Tag.

tag_group_ids

array

–

Array of TagGroup IDs to assign the Tag to.

taggable_section_id

integer

–

The ID of the TaggableSection to assign the Tag to.

Keys with * are required.

Example Request

Example Response

Admin: Update

Update an existing Tag.

Definition

PUT /api/administration/tags/{tag}

Route Parameters

Parameter
Type
Description

tag

integer

Tag ID.

Request Keys

Key
Type
Default
Description

title

string

Current value

Tag title.

color

string

Current value

Tag color.

tag_group_ids

array | null

Current assignments

TagGroup IDs; null detaches all.

Example Request

Example Response

Admin: Delete

Delete an existing Tag.

Definition

DELETE /api/administration/tags/{tag}

Route Parameters

Parameter
Type
Description

tag

integer

Tag ID.

Example Request

Example Response

Last updated