latestOpenAPI 3.0.32026-08-10152216352.3 KB
eea119b4113f
Workspaces
List run changed code
Lists code changes grouped by folders with file metadata
post/workspaces/{workspaceId}/runs/{runId}/changed-files-code/search
Query parameters
pageinteger
pageSizeinteger
Request body
Example request
{
"filters": {
"taskId": [
"507f1f77bcf86cd799439013"
],
"suffix": [
"tf"
],
"taskType": [
"post-plan"
],
"filePath": [
"infrastructure/main.tf"
],
"$or": {
"taskId": [
"507f1f77bcf86cd799439013"
],
"suffix": [
"tf"
],
"taskType": [
"post-plan"
],
"filePath": [
"infrastructure/main.tf"
]
}
}
}Response
Run changed code retrieved successfully
ListRunChangedCodeResponse required
Response containing changed files grouped by folder path
Example response
{
"infrastructure": [
{
"id": "507f1f77bcf86cd799439014",
"filePath": "infrastructure/main.tf",
"folderPath": "infrastructure",
"fileSuffix": "tf",
"changes": {
"additions": 10,
"deletions": 5
}
}
],
"modules": [
{
"id": "507f1f77bcf86cd799439015",
"filePath": "modules/network/main.tf",
"folderPath": "modules/network",
"fileSuffix": "tf",
"changes": {
"additions": 3,
"deletions": 1
}
}
]
}