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

<div class="openapi">

# Set Batch Defect Groups Status

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

## Request

<div class="openapi__requests">

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

<div class="openapi__request">

POST {.openapi__method}
```text translate=no
https://appsec.sourcecraft.tech/v1/defect-groups/status/batch
```

</div>

</div>

</div>

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

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "comment": "Triaged as a false positive",
  "updates": [
    {
      "publicId": 42,
      "status": "RESOLVED_FP"
    }
  ]
}
```

{% endcut %}

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

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

_Min items:_{.json-schema-reset .json-schema-assertion} `1`

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

```json translate=no
[
  {
    "publicId": 42,
    "status": "RESOLVED_FP"
  }
]
```

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

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

Optional comment attached to every status-change activity (max 1023 characters)

_Max length:_{.json-schema-reset .json-schema-assertion} `1023`

_Example:_{.json-schema-reset .json-schema-example} `Triaged as a false positive`
{.table-cell}
||
|#{.json-schema-properties}

</div>

<div class="openapi-entity">

### DefectGroupStatusUpdateByPublicId {#entity-DefectGroupStatusUpdateByPublicId}

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

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

Public per-repository number of the defect group (the #N shown in the UI)
{.table-cell}
||
||

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

New status: one of the DefectGroupStatus enum names

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

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

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

```json translate=no
{
  "publicId": 42,
  "status": "RESOLVED_FP"
}
```

{% endcut %}

</div>

## Responses

<div class="openapi__response__code__200">

## 200 OK

OK

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "updated": 0,
  "notUpdated": 0
}
```

{% endcut %}

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

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

Number of requested updates not applied: forbidden transitions or unchanged statuses
{.table-cell}
||
||

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

Number of defect groups the status change was applied to
{.table-cell}
||
|#{.json-schema-properties}

</div>

</div>

<div class="openapi__response__code__400">

## 400 Bad Request

Bad Request

</div>

</div>

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