Menú

Referencia de la API · Reports

Temas

reports · themes · 5 operaciones

GET/v1/reports/themes

List report themes

reports.themes.list

LecturaIdempotenteDesde 2026-11-01

Lists the report themes available to the organization: the four system themes (classic, elegant, playful, bold; first, unless include_system is false) and the organization's own, newest first, in one list paginated by cursor (the system themes count in limit). Each theme has seven hex colors and its fonts. Apply one to a template, report or instance with theme_id + theme_source. Requires view access to Reports.

Alcance
reports:read
Permiso
Ver el módulo
Tool del MCP
reports_themes_listEn la superficie completa; en la compacta, mb_execute_operation con id: "reports.themes.list".

Costo declarado: hasta 51 lecturas y 0 escrituras por llamada (cuentan en el cupo diario).

Parámetros

limitintegerqueryopcional

How many themes per page (default 50, at most 200).

Por defecto: 50

cursorstringqueryopcional

The next_cursor of the previous page, to get the next one; omit it for the first page.

include_systembooleanqueryopcional

Include the four system themes first (default true); they count in limit.

Por defecto: true

Respuesta

dataarray<object>
has_moreboolean
next_cursorstring

Errores

Ejemplo

curl "https://api.mb-suite.com/v1/reports/themes" \
  -H "Authorization: Bearer $MB_API_KEY"

Probar con tu API key de prueba

Con una API key de prueba el pedido va siempre a tu organización de práctica: datos de ejemplo que puedes reiniciar.

curl "https://api.mb-suite.com/v1/reports/themes" \
  -H "Authorization: Bearer $MB_TEST_KEY"
GET/v1/reports/themes/{theme_id}

Get a report theme

reports.themes.get

LecturaIdempotenteDesde 2026-11-01

Returns one report theme: a system one (classic, elegant, playful, bold) or the organization's, with its colors and fonts; without source it looks in both. Not found if the id does not exist. Requires view access to Reports.

Alcance
reports:read
Permiso
Ver el módulo
Tool del MCP
reports_themes_getEn la superficie completa; en la compacta, mb_execute_operation con id: "reports.themes.get".

Costo declarado: hasta 1 lecturas y 0 escrituras por llamada (cuentan en el cupo diario).

Parámetros

theme_idstringrutarequerido

The theme id (reports.themes.list): a system one (classic, elegant, playful, bold) or the organization's.

sourceenumqueryopcional

organization or system; omit it to look in both.

Valores: organization, system

Respuesta

idstring

Theme id.

namestring

Name.

is_systemboolean

A system theme (read-only).

colorsobject

Colors.

typographyobject

Fonts.

created_atnumber | null

Created (epoch ms); null for system themes.

updated_atnumber | null

Last edited (epoch ms); null for system themes.

created_bystring | null

Uid of who created it.

Errores

Ejemplo

curl "https://api.mb-suite.com/v1/reports/themes/{theme_id}" \
  -H "Authorization: Bearer $MB_API_KEY"

Probar con tu API key de prueba

Con una API key de prueba el pedido va siempre a tu organización de práctica: datos de ejemplo que puedes reiniciar.

curl "https://api.mb-suite.com/v1/reports/themes/{theme_id}" \
  -H "Authorization: Bearer $MB_TEST_KEY"
POST/v1/reports/themes

Create a report theme

reports.themes.create

EscrituraDesde 2026-11-01

Creates a report theme of the organization: a name (up to 100 characters), seven colors as #rrggbb (primary, secondary, background, text, heading, border, accent) and the fonts (Inter, Merriweather, Roboto, Playfair Display or Montserrat; an optional separate heading font). Returns the theme id. Requires edit access to Reports.

Alcance
reports:write
Permiso
Editar en el módulo
Tool del MCP
reports_themes_createEn la superficie completa; en la compacta, mb_execute_operation con id: "reports.themes.create".

Costo declarado: hasta 0 lecturas y 1 escrituras por llamada (cuentan en el cupo diario).

Parámetros

namestringcuerporequerido

Theme name.

colorsobjectcuerporequerido

The theme's colors, all #RRGGBB.

typographyobjectcuerporequerido

The theme's fonts.

Respuesta

theme_idstring

Errores

Ejemplo

curl -X POST "https://api.mb-suite.com/v1/reports/themes" \
  -H "Authorization: Bearer $MB_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "name": "NAME",
  "colors": {},
  "typography": {}
}'

Probar con tu API key de prueba

Con una API key de prueba el pedido va siempre a tu organización de práctica: datos de ejemplo que puedes reiniciar.

curl -X POST "https://api.mb-suite.com/v1/reports/themes" \
  -H "Authorization: Bearer $MB_TEST_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "name": "NAME",
  "colors": {},
  "typography": {}
}'
PATCH/v1/reports/themes/{theme_id}

Update a report theme

reports.themes.update

EscrituraIdempotenteDesde 2026-11-01

Updates the name, the colors (all seven) or the fonts of one of the organization's report themes; everything that uses it changes look. System themes cannot be edited (409 system_theme_read_only). Returns the updated theme. Fields go inside updates. Requires edit access to Reports.

Alcance
reports:write
Permiso
Editar en el módulo
Tool del MCP
reports_themes_updateEn la superficie completa; en la compacta, mb_execute_operation con id: "reports.themes.update".

Costo declarado: hasta 1 lecturas y 1 escrituras por llamada (cuentan en el cupo diario).

Parámetros

theme_idstringrutarequerido

The id of one of the organization's own themes (reports.themes.list, is_system false).

updatesobjectcuerporequerido

The fields to change.

Respuesta

themeobject

Errores

Ejemplo

curl -X PATCH "https://api.mb-suite.com/v1/reports/themes/{theme_id}" \
  -H "Authorization: Bearer $MB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "updates": {}
}'

Probar con tu API key de prueba

Con una API key de prueba el pedido va siempre a tu organización de práctica: datos de ejemplo que puedes reiniciar.

curl -X PATCH "https://api.mb-suite.com/v1/reports/themes/{theme_id}" \
  -H "Authorization: Bearer $MB_TEST_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "updates": {}
}'
DELETE/v1/reports/themes/{theme_id}

Delete a report theme

reports.themes.delete

IrreversibleDesde 2026-11-01

Deletes one of the organization's report themes; it stays 30 days in the trash. Templates, reports and instances that used it fall back to the default look until it is restored (it comes back with the same id): the dry run says how many use it. System themes cannot be deleted (409 system_theme_read_only). Requires edit access to Reports. Outside the screen it needs a dry run and a confirm_token, or a key with deletion enabled.

Con una API key, este DELETE se ejecuta directo: el registro queda 30 días en la papelera y la respuesta trae su trash_item_id. Con un token OAuth, y por el MCP, pide dry_run → confirm_token.

Alcance
reports:write y «Permitir eliminar» (reports:delete en OAuth)
Permiso
Editar en el módulo
Tool del MCP
reports_themes_deleteEn la superficie completa; en la compacta, mb_execute_operation con id: "reports.themes.delete".

Costo declarado: hasta 1 lecturas y 2 escrituras por llamada (cuentan en el cupo diario).

Parámetros

theme_idstringrutarequerido

The id of one of the organization's own themes (reports.themes.list, is_system false).

Respuesta

oktrue
trash_item_idstring

The trash item this deletion left: the item_id of platform.trash.restore (POST /trash/{item_id}/restore). Missing if nothing went to the trash.

trash_item_idsarray<string>

Only when the deletion left more than one copy: all of them, the first being trash_item_id.

trash_expires_atnumber

When the copy leaves the trash for good (epoch ms): 30 days after the deletion.

Errores

Ejemplo

curl -X DELETE "https://api.mb-suite.com/v1/reports/themes/{theme_id}" \
  -H "Authorization: Bearer $MB_API_KEY"

Probar con tu API key de prueba

Con una API key de prueba el pedido va siempre a tu organización de práctica: datos de ejemplo que puedes reiniciar.

curl -X DELETE "https://api.mb-suite.com/v1/reports/themes/{theme_id}" \
  -H "Authorization: Bearer $MB_TEST_KEY"