NinjaOne icon

NinjaOne

Ninja One Public API documentation. <br><br>See also: <br> <a href="https://resources.ninjarmm.com/API/Ninja+RMM+Public+API+v2.0.5+Device+Filter+Syntax.pdf">Device Filter syntax</a><br><a href="https://app.ninjarmm.com/apidocs-beta/core-resources/articles/webhooks/overview">Webhooks</a>

Actions309

CustomTabs → Set the tab visibility of the specified tab

AI-generated

Summary

Set the visibility of custom tabs for a specified user role by providing the role ID and an array of tab display settings.

Inputs

  • roleId (required) — The ID of the role whose tab visibility settings will be updated.
  • items (required) — A JSON array specifying the visibility settings for the tabs to be updated for the role.
  • options — Optional settings including custom request body JSON to merge, custom HTTP headers, query filters, batching controls, debug flag, pagination configuration, and request timeout.

Output shape

a single API response object confirming the update action, including details of the visibility changes; optionally includes debug information if enabled.

The operation sends a PATCH request and returns the server's response JSON for the visibility update. Debug output with actual request details is included if the debug option is enabled.

Examples

Example 1: Update tab visibility for a role

Provide the roleId and the 'items' JSON array describing tab visibility states to change which tabs are visible or hidden for that role.

Links

Discussion