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

List tiles. Supports filtering, field selection, and sorting through listOptions.

get_tile

Return a tile by its ID.

save_tile

Create or update a tile. Omit id to create a new tile. Include id to update an existing tile. System fields, such as createdBy, changedBy, and ver, cannot be set.

delete_tile

Delete a tile by its ID and remove it from every tile group. Requires confirm set to true. Without it, the tile groups that the tile is assigned to are reported, and nothing is deleted.

Tile groups

Tool Description

list_tile_groups

List tile groups. Supports filtering, field selection, and sorting through listOptions.

get_tile_group

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.

save_tile_group

Create or update a tile group. Omit id to create a new tile group. Include id to update an existing tile group. tiles and tilegroups are arrays of { id } in display order that each replace the whole assignment. System fields, such as createdBy, changedBy, and ver, cannot be set.

delete_tile_group

Delete a tile group by its ID and remove it from every launchpad and parent tile group. Requires confirm set to true if the tile group still contains tiles or child tile groups.

Was this page helpful?

What made the biggest difference for you?
What went wrong? (Your feedback helps us fix it.)

Please don't include personal or sensitive data.