Tiles and tile groups
Tile tools maintain the tiles and tile groups that make up a launchpad. A tile is the entry point that a launchpad user selects to open an application. Saves run through the same validation, hooks, development package checks, and edit locks as the Cockpit.
Required access:
-
The Tile tool (
tile) for the tile tools. -
The Tile Group tool (
category) for the tile group tools.
Display access is enough to list and read. Saving and deleting require Edit access.
If none of your roles includes the tool with the required access, the call fails immediately with an access denied error. Contact an administrator to request access, or see Access control for more information on how access is enforced.
When you update a tile or a tile group, the fields that you send are merged with the stored record. Fields that you do not send keep their values.
Assign tiles to tile groups
Which tiles and child tile groups belong to a tile group is set on the tile group,
not on the tile. save_tile cannot change the assignment of a tile.
In save_tile_group, tiles and tilegroups are arrays of { id } in display
order. Each array replaces the whole assignment. To add, remove, or reorder an entry,
send the complete array, not only the entries that change.
Example: To add a tile to a tile group that already contains two tiles, read the
tile group with get_tile_group, append the new tile to its tiles array, and
send all three entries with save_tile_group.
Delete tiles and tile groups
|
Deleting a tile removes it from every tile group it is assigned to. Deleting a tile group removes it from every launchpad and parent tile group that uses it. |
To delete a tile, set confirm to true. Without it, the deletion is refused
for every tile, and the response names the tile groups that the tile is assigned
to.
To delete a tile group that still contains tiles or child tile groups, set confirm
to true. Without it, the deletion is refused, and the response reports the number
of assigned tiles and child tile groups. An empty tile group is deleted without
confirm.
Available tools
Tiles
| Tool | Description |
|---|---|
|
List tiles. Supports filtering, field selection, and sorting through |
|
Return a tile by its ID. |
|
Create or update a tile. Omit |
|
Delete a tile by its ID and remove it from every tile group. Requires |
Tile groups
| Tool | Description |
|---|---|
|
List tile groups. Supports filtering, field selection, and sorting through |
|
Return a tile group by its ID, including its assigned tiles, child tile groups, navbar and sidebar groups, roles, tile and group layouts, and the launchpads it is assigned to. |
|
Create or update a tile group. Omit |
|
Delete a tile group by its ID and remove it from every launchpad and parent tile
group. Requires |
Related topics
-
Tools overview — the full list of artifact types and required access.
-
Access control — how role and development package checks are enforced on every tool call.
-
Launchpads: assign tile groups to a launchpad.