---
title: "List run changed code"
method: POST
path: "/workspaces/{workspaceId}/runs/{runId}/changed-files-code/search"
tags: ["Workspaces"]
---

# List run changed code

`POST /workspaces/{workspaceId}/runs/{runId}/changed-files-code/search`

Lists code changes grouped by folders with file metadata

## Query parameters

- `page` integer
- `pageSize` integer

## Request body

- ListRunChangedCodeRequest
  - `projection` string[] — Fields to include in the response
  - `searchValue` string — Value to search for across searchable fields
  - `filters` object — Filters for changed code files
    - `taskId` string[] — Filter by task ID
    - `suffix` string[] — Filter by file suffix
    - `taskType` TaskTypeEnum[] — Filter by task type
    - `filePath` string[] — Filter by file path (supports glob patterns)
    - `$or` ChangedCodeFilters — Filters for changed code files
      - `taskId` string[] — Filter by task ID
      - `suffix` string[] — Filter by file suffix
      - `taskType` TaskTypeEnum[] — Filter by task type
      - `filePath` string[] — Filter by file path (supports glob patterns)
  - `sort` ChangedCodeSortField
    - `taskType` SortConfig
      - `order` -1 | 1 — Sort order (-1 for descending, 1 for ascending)
    - `suffix` SortConfig
      - `order` -1 | 1 — Sort order (-1 for descending, 1 for ascending)
    - `updatedAt` SortConfig
      - `order` -1 | 1 — Sort order (-1 for descending, 1 for ascending)

## Response `200`

Run changed code retrieved successfully

- ListRunChangedCodeResponse — Response containing changed files grouped by folder path

## Other responses

- `400` — Bad Request Error
- `401` — Unauthorized Error
- `403` — Insufficient permissions
- `404` — Not Found Error
- `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)
