Set Batch Defect Groups Ticket Url
Request
POST
https://appsec.sourcecraft.tech/v1/defect-groups/ticket-url/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: Example: |
Body
application/json
{
"content": "Linking to JIRA ticket for tracking this security issue",
"updates": [
{
"defectGroupId": 12345,
"defectGroupUuid": "0199140f-4343-7c06-a7e3-b835c305b629",
"ticketUrl": "example"
}
]
}
|
Name |
Description |
|
updates |
Type: DefectGroupTicketUrlUpdate[] Min items: Example
|
|
content |
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: Example: |
DefectGroupTicketUrlUpdate
|
Name |
Description |
|
ticketUrl |
Type: string Pattern: Example: |
|
defectGroupId |
Type: integer Internal numeric ID of the defect group (deprecated, use defectGroupUuid instead) |
|
defectGroupUuid |
Type: string | null UUID of the defect group. Takes priority over defectGroupId when both are provided. Example: |
Example
{
"defectGroupId": 12345,
"defectGroupUuid": "0199140f-4343-7c06-a7e3-b835c305b629",
"ticketUrl": "example"
}
Responses
200 OK
OK
Body
application/json
null
Type: unknown
400 Bad Request
Bad Request
No longer supported, please use an alternative and newer version.