---
metadata:
  - name: generator
    content: Diplodoc Platform v5.64.0
alternate:
  - https://sourcecraft.dev/portal/docs/en/sec-api-ref/Defect-Group-Ticket-Url-Rest-Api/v1defect-groupsticket-urlbatch-post.md
  - https://sourcecraft.dev/portal/docs/ru/sec-api-ref/Defect-Group-Ticket-Url-Rest-Api/v1defect-groupsticket-urlbatch-post.md
  - href: https://sourcecraft.dev/portal/docs/ru/sec-api-ref/Defect-Group-Ticket-Url-Rest-Api/v1defect-groupsticket-urlbatch-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 Ticket Url

<!-- 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/ticket-url/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
{
  "content": "Linking to JIRA ticket for tracking this security issue",
  "updates": [
    {
      "defectGroupId": 12345,
      "defectGroupUuid": "0199140f-4343-7c06-a7e3-b835c305b629",
      "ticketUrl": "example"
    }
  ]
}
```

{% endcut %}

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

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

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

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

```json translate=no
[
  {
    "defectGroupId": 12345,
    "defectGroupUuid": "0199140f-4343-7c06-a7e3-b835c305b629",
    "ticketUrl": "example"
  }
]
```

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

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

Optional custom comment text for the defect group activity. If not provided or empty, a default comment will be generated automatically based on the ticket URL changes. Default comments follow the pattern: 'Ticket URL set: <url>', 'Ticket URL changed from <old> to <new>', or 'Ticket URL removed'.

_Example:_{.json-schema-reset .json-schema-example} `Linking to JIRA ticket for tracking this security issue`
{.table-cell}
||
|#{.json-schema-properties}

</div>

<div class="openapi-entity">

### DefectGroupTicketUrlUpdate {#entity-DefectGroupTicketUrlUpdate}

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

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

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

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

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

Internal numeric ID of the defect group (deprecated, use defectGroupUuid instead)
{.table-cell}
||
||

_defectGroupUuid_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string &#124; null

UUID of the defect group. Takes priority over defectGroupId when both are provided.

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

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

```json translate=no
{
  "defectGroupId": 12345,
  "defectGroupUuid": "0199140f-4343-7c06-a7e3-b835c305b629",
  "ticketUrl": "example"
}
```

{% endcut %}

</div>

## Responses

<div class="openapi__response__code__200">

## 200 OK

OK

<div class="openapi-entity">

### Body

{% cut "application/json" %}

`null`

{% endcut %}

**Type**: unknown

</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.