---
title: "Get assignable tree"
method: GET
path: "/runners/runner-pools/assignable-tree"
tags: ["Self-Hosted Runners"]
---

# Get assignable tree

`GET /runners/runner-pools/assignable-tree`

Retrieves a hierarchical tree of projects and workspaces that can be assigned to runner pools, with pool assignment information

## Query parameters

- `poolId` string

## Response `200`

Assignable tree retrieved successfully

- AssignableTreeResponse
  - `data` EnhancedProjectNode[], required
    - `id` string, required
    - `name` string, required
    - `path` string, required
    - `type` 'project', required
    - `parentId` string
    - `poolId` string, nullable
    - `effectivePoolId` string, nullable, required
    - `isRoot` boolean, required
    - `workspaces` EnhancedWorkspaceNode[], required
      - `id` string, required
      - `name` string, required
      - `type` 'workspace', required
      - `projectId` string, required
      - `defaultBranch` string
      - `poolId` string, nullable
      - `effectivePoolId` string, nullable, required
    - `children` EnhancedProjectNode[], required
  - `metadata` object, required
    - `totalProjects` integer, required
    - `totalWorkspaces` integer, required
    - `currentPoolId` string

## Other responses

- `400` — Bad Request Error
- `401` — Unauthorized Error
- `403` — Insufficient permissions
- `500` — Internal Server Error

---

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