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

LayoutColumnLayoutElements

Introduction

LayoutColumnLayoutElements manage the polymorphic assignment of a layout element, such as a FormField, to LayoutColumns.

Model Definition

Alias

layoutColumnLayoutElement

Relations

Key
Relation
Type
Relation Field(s)

layoutElement

Supported layout element

Morph to

layout_element_type, layout_element_id

layoutColumn

Belongs to

layout_column_id

List Columns for Element

List LayoutColumns attached to one layout element.

Definition

GET /api/layouts/elements/columns

Request Keys

Key
Type
Default
Description

layout_element_type*

string

-

Supported layout-element morph alias.

layout_element_id*

integer

-

Layout element ID.

limit

integer

No limit

Maximum number of assigned columns.

Keys with * are required.

Behavior

Send the required keys as query parameters. The PHP example includes them in the request's query option.

Example Request

Example Response

Attach Columns

Attach LayoutColumns to one layout element.

Definition

POST /api/layouts/elements/columns/attach

Request Keys

Key
Type
Default
Description

layout_element_type*

string

-

Supported layout-element morph alias, for example formField.

layout_element_id*

integer

-

Layout element ID.

layout_column_ids*

array

-

Column records containing layout_column_id and optional pivot values such as sort_number.

Keys with * are required.

Behavior

Existing pivots are updated; missing pivots are created. The response contains the requested columns still attached to the element.

Example Request

Example Response

Sync Columns

Synchronize the LayoutColumns attached to one layout element.

Definition

POST /api/layouts/elements/columns/sync

Request Keys

Key
Type
Default
Description

layout_element_type*

string

-

Supported layout-element morph alias, for example formField.

layout_element_id*

integer

-

Layout element ID.

layout_column_ids*

array

-

Column records containing layout_column_id and optional pivot values such as sort_number.

Keys with * are required.

Behavior

Assignments not present in layout_column_ids are detached; supplied assignments are updated or created.

Example Request

Example Response

Detach Columns

Detach LayoutColumns from one layout element.

Definition

POST /api/layouts/elements/columns/detach

Request Keys

Key
Type
Default
Description

layout_element_type*

string

-

Supported layout-element morph alias, for example formField.

layout_element_id*

integer

-

Layout element ID.

layout_column_ids*

array

-

Column records containing layout_column_id and optional pivot values such as sort_number.

Keys with * are required.

Example Request

Example Response

Last updated