---
title: "Get directive tree"
method: GET
path: "/directives/tree"
tags: ["Directives"]
---

# Get directive tree

`GET /directives/tree`

Get all information about all directives in a tree like structure (with categories and techniques)

## Query parameters

- `includeSystem` boolean

## Request body

- object
  - `includeSystem` boolean — Should we include system techniques and categories in the tree or not.

## Response `200`

Directives tree

- object
  - `result` 'success' | 'error', required — Result of the request
  - `action` 'directivesTree', required — The id of the action
  - `data` object, required
    - `directives` DirectiveTree[], required
      - `name` string — Category name
      - `description` string — Category description
      - `subCategories` object[] — Sub categories of the category
        - `name` string — Category name
        - `description` string — Category description
        - `subCategories` unknown[] — Sub categories of the sub category
          - unknown
        - `techniques` unknown[] — Techniques of the sub category
          - unknown
      - `techniques` object[]
        - `name` string — technique name
        - `directives` Directive[] — Directives of the techniques
          - `id` string, uuid — Directive id
          - `displayName` string — Human readable name of the directive
          - `shortDescription` string — One line directive description
          - `longDescription` string, markdown — Description of the technique (rendered as markdown)
          - `techniqueName` string — Directive id
          - `techniqueVersion` string — Directive id
          - `priority` integer — Directive priority. `0` has highest priority.
          - `enabled` boolean — Is the directive enabled
          - `system` boolean — If true it is an internal Rudder directive
          - `policyMode` 'enforce' | 'audit' — Policy mode of the directive
          - `tags` object[]
          - `parameters` object — Directive parameters (depends on the source technique)

---

[API](https://skmtc.net/rudder/apis/rudder-api.md) · [All operations](https://skmtc.net/rudder/apis/rudder-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rudder/rudder-api/revisions/eab988254fba/schema)
