---
metadata:
  - name: generator
    content: Diplodoc Platform v5.71.0
alternate:
  - https://vibe.sourcecraft.dev/portal/docs/en/sec-api-ref/Defect-Group-Rest-Api/v1defect-groupspublicIddependency-chain-get.md
  - https://vibe.sourcecraft.dev/portal/docs/ru/sec-api-ref/Defect-Group-Rest-Api/v1defect-groupspublicIddependency-chain-get.md
  - https://vibe.sourcecraft.dev/portal/docs/ru/sec-api-ref/Defect-Group-Rest-Api/v1defect-groupspublicIddependency-chain-get.md
  - href: https://vibe.sourcecraft.dev/portal/docs/ru/sec-api-ref/Defect-Group-Rest-Api/v1defect-groupspublicIddependency-chain-get.md
    type: text/markdown
    title: Markdown version
  - href: https://vibe.sourcecraft.dev/portal/docs/ru/llms.txt?revision=r22261781
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://vibe.sourcecraft.dev/portal/docs/ru/llms.txt?revision=r22261781

<div class="openapi">

# Get the dependency chain for an SCA defect group

<!-- markdownlint-disable-file -->

Returns the vulnerable package and paths towards its direct/root dependencies. Uses the latest successful default-branch scan when scanUuid is omitted or blank. Paths start at the vulnerable package and are capped at 64 paths of 64 nodes, with cycles cut off.

## Request

<div class="openapi__requests">

<div class="openapi__request__wrapper" style="--method: var(--dc-openapi-methods-get);margin-bottom: 12px">

<div class="openapi__request">

GET {.openapi__method}
```text translate=no
https://appsec.sourcecraft.tech/v1/defect-groups/{publicId}/dependency-chain
```

</div>

</div>

</div>

### Path parameters

#|
|| **Name** | **Description** ||
||

_publicId_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: integer

Per-repository public id of the SCA defect group
{.table-cell}
||
|#{.json-schema-properties}

### Query parameters

#|
|| **Name** | **Description** ||
||

_gitRepo_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Repository identifier. Accepts either internal repository ID (e.g., 88769874964302633) or public UUID (e.g., 0199140f-4343-7c06-a7e3-b835c305b629). These values can be obtained from the getRepo API (fields: id and uuid).

_Pattern:_{.json-schema-reset .json-schema-assertion} `\S`

_Example:_{.json-schema-reset .json-schema-example} `0199140f-4343-7c06-a7e3-b835c305b629`
{.table-cell}
||
||

_scanUuid_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string

Scan UUID to select. Omit or leave blank to use the repository's latest scan. Scan UUIDs can be obtained from the scan listing endpoints.

_Default:_{.json-schema-reset .json-schema-value} ``

_Example:_{.json-schema-reset .json-schema-example} `01890f3e-7b5c-7cc2-bc6f-3f5d8c9a1e4a`
{.table-cell}
||
|#{.json-schema-properties}

## Responses

<div class="openapi__response__code__200">

## 200 OK

OK

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "target": {
    "purl": "example",
    "name": "example",
    "version": "example",
    "licenses": [
      {
        "name": "example",
        "riskScore": 0
      }
    ],
    "maxLicenseRiskScore": 0,
    "maxLicenseRiskSeverity": "example",
    "cves": [
      {
        "cveId": "example",
        "severity": "example",
        "defectGroupUuids": [
          null
        ],
        "defectGroupPublicIds": [
          null
        ]
      }
    ],
    "maxCveSeverity": "example",
    "packageManager": "example",
    "scope": "example"
  },
  "paths": [
    {
      "nodes": [
        null
      ]
    }
  ],
  "isTransitive": true
}
```

{% endcut %}

#|
|| **Name** | **Description** ||
||

_isTransitive_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: boolean

Whether the target has a recorded parent in the selected scan's dependency graph.
{.table-cell}
||
||

_paths_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: [DependencyChainPathDto](#entity-DependencyChainPathDto)[]

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
[
  {
    "nodes": [
      {
        "purl": "example",
        "name": "example",
        "version": "example",
        "licenses": [
          {}
        ],
        "maxLicenseRiskScore": 0,
        "maxLicenseRiskSeverity": "example",
        "cves": [
          {}
        ],
        "maxCveSeverity": "example",
        "packageManager": "example",
        "scope": "example"
      }
    ]
  }
]
```

{% endcut %}
{.table-cell}
||
||

_target_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: object &#124; null

{% cut "**Any of 2 types**" %}{.json-schema-combinators data-marker=or}

- **Type**: [DependencyNodeDto](#entity-DependencyNodeDto)

  {% cut "**Example**" %}{.json-schema-example}

  ```json translate=no
  {
    "purl": "example",
    "name": "example",
    "version": "example",
    "licenses": [
      {
        "name": "example",
        "riskScore": 0
      }
    ],
    "maxLicenseRiskScore": 0,
    "maxLicenseRiskSeverity": "example",
    "cves": [
      {
        "cveId": "example",
        "severity": "example",
        "defectGroupUuids": [
          "example"
        ],
        "defectGroupPublicIds": [
          0
        ]
      }
    ],
    "maxCveSeverity": "example",
    "packageManager": "example",
    "scope": "example"
  }
  ```

  {% endcut %}

- **Type**: null

  _Example:_{.json-schema-reset .json-schema-example} `null`

{% endcut %}

Vulnerable package; null when it cannot be resolved in the selected scan's SBOM.

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
{
  "purl": "example",
  "name": "example",
  "version": "example",
  "licenses": [
    {
      "name": "example",
      "riskScore": 0
    }
  ],
  "maxLicenseRiskScore": 0,
  "maxLicenseRiskSeverity": "example",
  "cves": [
    {
      "cveId": "example",
      "severity": "example",
      "defectGroupUuids": [
        "example"
      ],
      "defectGroupPublicIds": [
        0
      ]
    }
  ],
  "maxCveSeverity": "example",
  "packageManager": "example",
  "scope": "example"
}
```

{% endcut %}
{.table-cell}
||
|#{.json-schema-properties}

</div>

<div class="openapi-entity">

### DependencyLicenseDto {#entity-DependencyLicenseDto}

#|
|| **Name** | **Description** ||
||

_name_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_riskScore_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: integer

License risk score from the repository's current license configuration, from 0 to 10.
{.table-cell}
||
|#{.json-schema-properties}

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
{
  "name": "example",
  "riskScore": 0
}
```

{% endcut %}

</div>

<div class="openapi-entity">

### DependencyCveDto {#entity-DependencyCveDto}

#|
|| **Name** | **Description** ||
||

_cveId_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_defectGroupPublicIds_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: integer[]

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
[
  0
]
```

{% endcut %}
{.table-cell}
||
||

_defectGroupUuids_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string[]

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
[
  "example"
]
```

{% endcut %}
{.table-cell}
||
||

_severity_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
|#{.json-schema-properties}

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
{
  "cveId": "example",
  "severity": "example",
  "defectGroupUuids": [
    "example"
  ],
  "defectGroupPublicIds": [
    0
  ]
}
```

{% endcut %}

</div>

<div class="openapi-entity">

### DependencyNodeDto {#entity-DependencyNodeDto}

#|
|| **Name** | **Description** ||
||

_cves_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: [DependencyCveDto](#entity-DependencyCveDto)[]

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
[
  {
    "cveId": "example",
    "severity": "example",
    "defectGroupUuids": [
      "example"
    ],
    "defectGroupPublicIds": [
      0
    ]
  }
]
```

{% endcut %}
{.table-cell}
||
||

_licenses_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: [DependencyLicenseDto](#entity-DependencyLicenseDto)[]

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
[
  {
    "name": "example",
    "riskScore": 0
  }
]
```

{% endcut %}
{.table-cell}
||
||

_maxCveSeverity_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_maxLicenseRiskScore_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: integer
{.table-cell}
||
||

_maxLicenseRiskSeverity_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_name_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_packageManager_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_purl_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_scope_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_version_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
|#{.json-schema-properties}

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
{
  "purl": "example",
  "name": "example",
  "version": "example",
  "licenses": [
    {
      "name": "example",
      "riskScore": 0
    }
  ],
  "maxLicenseRiskScore": 0,
  "maxLicenseRiskSeverity": "example",
  "cves": [
    {
      "cveId": "example",
      "severity": "example",
      "defectGroupUuids": [
        "example"
      ],
      "defectGroupPublicIds": [
        0
      ]
    }
  ],
  "maxCveSeverity": "example",
  "packageManager": "example",
  "scope": "example"
}
```

{% endcut %}

</div>

<div class="openapi-entity">

### DependencyChainPathDto {#entity-DependencyChainPathDto}

#|
|| **Name** | **Description** ||
||

_nodes_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: [DependencyNodeDto](#entity-DependencyNodeDto)[]

Ordered from the vulnerable package towards a root; capped at 64 nodes, with cycles cut off.

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
[
  {
    "purl": "example",
    "name": "example",
    "version": "example",
    "licenses": [
      {
        "name": "example",
        "riskScore": 0
      }
    ],
    "maxLicenseRiskScore": 0,
    "maxLicenseRiskSeverity": "example",
    "cves": [
      {
        "cveId": "example",
        "severity": "example",
        "defectGroupUuids": [
          "example"
        ],
        "defectGroupPublicIds": [
          0
        ]
      }
    ],
    "maxCveSeverity": "example",
    "packageManager": "example",
    "scope": "example"
  }
]
```

{% endcut %}
{.table-cell}
||
|#{.json-schema-properties}

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
{
  "nodes": [
    {
      "purl": "example",
      "name": "example",
      "version": "example",
      "licenses": [
        {
          "name": "example",
          "riskScore": 0
        }
      ],
      "maxLicenseRiskScore": 0,
      "maxLicenseRiskSeverity": "example",
      "cves": [
        {
          "cveId": "example",
          "severity": "example",
          "defectGroupUuids": [
            null
          ],
          "defectGroupPublicIds": [
            null
          ]
        }
      ],
      "maxCveSeverity": "example",
      "packageManager": "example",
      "scope": "example"
    }
  ]
}
```

{% endcut %}

</div>

</div>

</div>

[*Deprecated]: No longer supported, please use an alternative and newer version.