Layouts API Routes
An admin can modify the layout of their admin dashboard. This allows admins to customize their dashboard to their preferences and needs. These API routes allow admin users to manage layouts.
GET /admin/layouts/configurations#
List Layout Configurations
Retrieve a list of layout configurations made by admin users. The layouts can be filtered by fields such as id. The layouts can also be sorted or paginated.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Query parameters
idstring | string[]Optionalzonestring | string[]Optionaluser_idstring | string[]Optionalis_system_defaultbooleanOptionallimitnumberOptionaloffsetnumberOptionalorderstringOptional-.with_deletedbooleanOptionalfieldsstringOptional+ it will be added to the default fields, using - will remove it from the default fields. Without prefix it will replace the entire default fields.$andobject[]Optional$orobject[]OptionalRequest examples
Responses
200 OK
limitnumberoffsetnumbercountnumberestimate_countnumberOptionallayout_configurationsobject[]The list of layout configurations.
layout_configurationsobject[]400, 401, 404, 409, 422, 500: an error response is returned.
GET /admin/layouts/{zone}/configuration#
List Layout Configurations
Retrieve a list of layout configurations for a specific zone. These are the configurations made by the users for their admin dashboard layouts.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Path parameters
zonestringRequest examples
Responses
200 OK
personal_configurationobjectThe layout configuration's details.
personal_configurationobjectdefault_configurationobjectThe layout configuration's details.
default_configurationobjectactive_scope"default" | "personal"400, 401, 404, 409, 422, 500: an error response is returned.
POST /admin/layouts/{zone}/configuration#
Add Layout Configuration
Add a layout configuration for a specific zone. This allows you to customize the layout of the admin dashboard for that zone, including the arrangement of widgets and other UI elements.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Path parameters
zonestringRequest body (application/json)
is_defaultbooleanOptionalconfigurationobjectThe layout's configuration.
configurationobjectRequest examples
Responses
200 OK
personal_configurationobjectThe layout configuration's details.
personal_configurationobjectdefault_configurationobjectThe layout configuration's details.
default_configurationobjectactive_scope"default" | "personal"400, 401, 404, 409, 422, 500: an error response is returned.
DELETE /admin/layouts/{zone}/configuration#
Clear Configuration of Layout
Clears all user layout configurations for a given zone. This action will remove any customizations made by the user and revert to the system defaults.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Path parameters
zonestringRequest examples
Responses
200 OK
successboolean400, 401, 404, 409, 422, 500: an error response is returned.