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

<div class="openapi">

# Get Defect Group By Public Id

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

## 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}
```

</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 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}
||
|#{.json-schema-properties}

## Responses

<div class="openapi__response__code__200">

## 200 OK

OK

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "id": 0,
  "ruleName": "example",
  "codeBlock": "example",
  "fileName": "example",
  "latestCommit": "example",
  "latestTimeFound": 0,
  "gitRepo": "example",
  "status": 0,
  "severity": 0,
  "cvssScore": 0.5,
  "engine": "example",
  "neuroTriageUuid": "123e4567-e89b-12d3-a456-426614174000",
  "neuroScore": 0,
  "firstCommit": "example",
  "firstTimeFound": 0,
  "uuid": null,
  "ruleId": "example",
  "findingsCount": 0,
  "publicId": 0,
  "fixOperationUuid": null,
  "engineType": 0,
  "startLine": 0,
  "endLine": 0,
  "startColumn": 0,
  "endColumn": 0,
  "links": [
    {
      "type": "EXTERNAL_URL",
      "url": "example"
    }
  ]
}
```

{% endcut %}

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

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

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

_cvssScore_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: number
{.table-cell}
||
||

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

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

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

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

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

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

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

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

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

_id_{.json-schema-reset .json-schema-property .json-schema-required .json-schema-deprecated}_[ ](*Deprecated)_{.openapi-deprecated .openapi-deprecated-compact}
{.table-cell}|
**Type**: integer
{.table-cell}
||
||

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

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

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

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

_neuroTriageUuid_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
{% cut "**Any of 2 types**" %}{.json-schema-combinators data-marker=or}

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

  _Pattern:_{.json-schema-reset .json-schema-assertion} `[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}`

  _Example:_{.json-schema-reset .json-schema-example} `123e4567-e89b-12d3-a456-426614174000`

- **Type**: null

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

{% endcut %}

_Example:_{.json-schema-reset .json-schema-example} `123e4567-e89b-12d3-a456-426614174000`
{.table-cell}
||
||

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

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

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

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

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

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

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

_Pattern:_{.json-schema-reset .json-schema-assertion} `[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}`

_Example:_{.json-schema-reset .json-schema-example} `123e4567-e89b-12d3-a456-426614174000`
{.table-cell}
||
||

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

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

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

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

_fixOperationUuid_{.json-schema-reset .json-schema-property}
{.table-cell}|
{% cut "**Any of 2 types**" %}{.json-schema-combinators data-marker=or}

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

  _Pattern:_{.json-schema-reset .json-schema-assertion} `[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}`

  _Example:_{.json-schema-reset .json-schema-example} `123e4567-e89b-12d3-a456-426614174000`

- **Type**: null

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

{% endcut %}

_Example:_{.json-schema-reset .json-schema-example} `123e4567-e89b-12d3-a456-426614174000`
{.table-cell}
||
||

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

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

```json translate=no
[
  {
    "type": "EXTERNAL_URL",
    "url": "example"
  }
]
```

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

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

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

_startLine_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: integer
{.table-cell}
||
|#{.json-schema-properties}

</div>

<div class="openapi-entity">

### UUID {#entity-UUID}

**Type**: string&lt;uuid&gt;

_Pattern:_{.json-schema-reset .json-schema-assertion} `[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}`

_Example:_{.json-schema-reset .json-schema-example} `123e4567-e89b-12d3-a456-426614174000`

</div>

<div class="openapi-entity">

### LinkType {#entity-LinkType}

**Type**: string

_Enum:_{.json-schema-reset .json-schema-value} `EXTERNAL_URL`, `SOURCECRAFT_ISSUE`, `SOURCECRAFT_PR`, `YA_TRACKER`

</div>

<div class="openapi-entity">

### DefectGroupLinkDto {#entity-DefectGroupLinkDto}

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

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

_Enum:_{.json-schema-reset .json-schema-value} `EXTERNAL_URL`, `SOURCECRAFT_ISSUE`, `SOURCECRAFT_PR`, `YA_TRACKER`
{.table-cell}
||
||

_url_{.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
{
  "type": "EXTERNAL_URL",
  "url": "example"
}
```

{% endcut %}

</div>

</div>

</div>

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