Set Batch Defect Groups Status

Request

POST

https://appsec.sourcecraft.tech/v1/defect-groups/status/batch

Query parameters

Name

Description

gitRepo

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: \S

Example: 0199140f-4343-7c06-a7e3-b835c305b629

Body

application/json
{
  "comment": "Triaged as a false positive",
  "updates": [
    {
      "publicId": 42,
      "status": "RESOLVED_FP"
    }
  ]
}

Name

Description

updates

Type: DefectGroupStatusUpdateByPublicId[]

Min items: 1

Example
[
  {
    "publicId": 42,
    "status": "RESOLVED_FP"
  }
]

comment

Type: string

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

Max length: 1023

Example: Triaged as a false positive

DefectGroupStatusUpdateByPublicId

Name

Description

publicId

Type: integer

Public per-repository number of the defect group (the #N shown in the UI)

status

Type: string

New status: one of the DefectGroupStatus enum names

Pattern: \S

Example: RESOLVED_FP

Example
{
  "publicId": 42,
  "status": "RESOLVED_FP"
}

Responses

200 OK

OK

Body

application/json
{
  "updated": 0,
  "notUpdated": 0
}

Name

Description

notUpdated

Type: integer

Number of requested updates not applied: forbidden transitions or unchanged statuses

updated

Type: integer

Number of defect groups the status change was applied to

400 Bad Request

Bad Request

Предыдущая
Следующая