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

InfoboardDepartmentSettings

Introduction

InfoboardDepartmentSettings store one settings object per Department. The current public setting selects an optional default InfoboardChannel.

Administration endpoints can upsert settings for one department or apply the same settings to several departments.

Model Definition

Alias

infoboardDepartmentSettings

Relations

Key
Relation
Type
Relation Field(s)

user

Belongs to

user_id

department

Belongs to

department_id

Show Current

Show the InfoboardDepartmentSettings for the authenticated user's primary department.

Definition

GET /api/infoboard/department-settings/current

Behavior

  • The response is null when the department has no settings record.

Example Request

Example Response

Admin: List

List all InfoboardDepartmentSettings in administration scope.

Definition

GET /api/administration/infoboard/department-settings

Example Request

Example Response

Admin: Show by Department

Show InfoboardDepartmentSettings for one department.

Definition

GET /api/administration/infoboard/department-settings/{department}

Route Parameters

Parameter
Type
Description

department

integer

Department ID.

Example Request

Example Response

Admin: Create or Update by Department

Create or update InfoboardDepartmentSettings for one department.

Definition

POST /api/administration/infoboard/department-settings/{department}

Route Parameters

Parameter
Type
Description

department

integer

Department ID.

Request Keys

Key
Type
Default
Description

settings*

object

-

Complete Infoboard settings object for the department.

settings.default_channel_id

integer | null

null

ID of the default InfoboardChannel.

Keys with * are required.

Behavior

  • department_id is derived from the route and user_id from the authenticated user; client-provided values are replaced.

  • An existing record for the department is updated instead of duplicated.

Example Request

Example Response

Admin: Create or Update Multiple Departments

Apply one settings object to several departments.

Definition

POST /api/administration/infoboard/department-settings

Request Keys

Key
Type
Default
Description

department_ids*

array

-

IDs of departments that receive the settings.

settings*

object

-

Complete Infoboard settings object applied to every department.

settings.default_channel_id

integer | null

null

ID of the default InfoboardChannel.

Keys with * are required.

Behavior

  • New records use the authenticated user as user_id.

  • Existing records are matched by department_id; their settings and timestamps are updated while their existing user_id remains unchanged.

  • The response is the raw list of affected settings records rather than a success wrapper.

Example Request

Example Response

Admin: Delete by Department

Delete InfoboardDepartmentSettings for one department.

Definition

DELETE /api/administration/infoboard/department-settings/{department}

Route Parameters

Parameter
Type
Description

department

integer

Department ID.

Behavior

  • The settings record is soft-deleted when it exists.

  • Deleting settings for an existing department without a settings record is idempotent and still returns success.

Example Request

Example Response

Last updated