---
metadata:
  - name: generator
    content: Diplodoc Platform v5.64.0
alternate:
  - https://sourcecraft.dev/portal/docs/en/sec-api-ref/Activities-Rest-Api/v1activitiescommentactivityUuid-patch.md
  - https://sourcecraft.dev/portal/docs/ru/sec-api-ref/Activities-Rest-Api/v1activitiescommentactivityUuid-patch.md
  - href: https://sourcecraft.dev/portal/docs/en/sec-api-ref/Activities-Rest-Api/v1activitiescommentactivityUuid-patch.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">

# Update Comment

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

## Request

<div class="openapi__requests">

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

<div class="openapi__request">

PATCH {.openapi__method}
```text translate=no
https://appsec.sourcecraft.tech/v1/activities/comment/{activityUuid}
```

</div>

</div>

</div>

### Path parameters

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

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

UUID of the comment activity to update

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

_Example:_{.json-schema-reset .json-schema-example} `01890f3e-7b5c-7cc2-bc6f-3f5d8c9a1e4a`
{.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}

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "content": "This looks like a false positive"
}
```

{% endcut %}

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

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

New comment content (max 1023 characters)

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

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

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

</div>

## Responses

<div class="openapi__response__code__200">

## 200 OK

OK

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "uuid": "123e4567-e89b-12d3-a456-426614174000",
  "id": 0,
  "activityComment": {
    "uuid": null,
    "id": 0,
    "content": "example"
  },
  "type": "ACTIVITY_TYPE_UNSPECIFIED",
  "title": "example",
  "createdAt": 0,
  "dueDate": 0,
  "createdByUserId": "example",
  "createdByUserPublicId": "example",
  "assignedToUserId": "example",
  "newStatus": "OPEN",
  "entityTags": [
    {
      "name": "example",
      "description": "example"
    }
  ],
  "attachments": [
    {
      "id": "example"
    }
  ],
  "isDeleted": true,
  "deleted": true,
  "previousStatus": null
}
```

{% endcut %}

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

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

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

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

  ```json translate=no
  {
    "uuid": "123e4567-e89b-12d3-a456-426614174000",
    "id": 0,
    "content": "example"
  }
  ```

  {% endcut %}

- **Type**: null

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

{% endcut %}

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

```json translate=no
{
  "uuid": "123e4567-e89b-12d3-a456-426614174000",
  "id": 0,
  "content": "example"
}
```

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

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

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

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

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

```json translate=no
[
  {
    "id": "example"
  }
]
```

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

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

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

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

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

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

_deleted_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: boolean
{.table-cell}
||
||

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

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

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

```json translate=no
[
  {
    "name": "example",
    "description": "example"
  }
]
```

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

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

_isDeleted_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: boolean
{.table-cell}
||
||

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

_Enum:_{.json-schema-reset .json-schema-value} `OPEN`, `RESOLVED_FIXED`, `RESOLVED_FP`, `RESOLVED_PROJECT_NOT_AFFECTED`, `RESOLVED_TOLERABLE`, `RESOLVED_DUPLICATE`, `TRIAGE_IN_PROGRESS`, `TRIAGED_TP`, `FIX_IN_PROGRESS`, `RESOLVED_AUTOFIXED`, `UNRECOGNIZED`
{.table-cell}
||
||

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

_Enum:_{.json-schema-reset .json-schema-value} `OPEN`, `RESOLVED_FIXED`, `RESOLVED_FP`, `RESOLVED_PROJECT_NOT_AFFECTED`, `RESOLVED_TOLERABLE`, `RESOLVED_DUPLICATE`, `TRIAGE_IN_PROGRESS`, `TRIAGED_TP`, `FIX_IN_PROGRESS`, `RESOLVED_AUTOFIXED`, `UNRECOGNIZED`
{.table-cell}
||
||

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

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

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

_Enum:_{.json-schema-reset .json-schema-value} `ACTIVITY_TYPE_UNSPECIFIED`, `CREATED`, `ASSIGNED`, `REASSIGNED`, `STATUS_CHANGED`, `COMMENT_ADDED`, `PRIORITY_ADDED`, `PRIORITY_CHANGED`, `DUE_DATE_ADDED`, `DUE_DATE_CHANGED`, `DUE_DATE_BREACHED`, `TAGS_ADDED`, `TAGS_CHANGED`, `RELATED_ISSUES_CHANGED`, `AI_SUGGESTION_ADDED`, `RELATED_ISSUES_REMOVED`, `AI_FIX_STARTED`, `AI_FIX_PR_LINKED`, `AI_STATUS_CHANGED`, `UNRECOGNIZED`
{.table-cell}
||
||

_uuid_{.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}
||
|#{.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">

### ActivityComment {#entity-ActivityComment}

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

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

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

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

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

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

```json translate=no
{
  "uuid": "123e4567-e89b-12d3-a456-426614174000",
  "id": 0,
  "content": "example"
}
```

{% endcut %}

</div>

<div class="openapi-entity">

### ActivityType {#entity-ActivityType}

**Type**: string

_Enum:_{.json-schema-reset .json-schema-value} `ACTIVITY_TYPE_UNSPECIFIED`, `CREATED`, `ASSIGNED`, `REASSIGNED`, `STATUS_CHANGED`, `COMMENT_ADDED`, `PRIORITY_ADDED`, `PRIORITY_CHANGED`, `DUE_DATE_ADDED`, `DUE_DATE_CHANGED`, `DUE_DATE_BREACHED`, `TAGS_ADDED`, `TAGS_CHANGED`, `RELATED_ISSUES_CHANGED`, `AI_SUGGESTION_ADDED`, `RELATED_ISSUES_REMOVED`, `AI_FIX_STARTED`, `AI_FIX_PR_LINKED`, `AI_STATUS_CHANGED`, `UNRECOGNIZED`

</div>

<div class="openapi-entity">

### DefectGroupStatus {#entity-DefectGroupStatus}

**Type**: string

_Enum:_{.json-schema-reset .json-schema-value} `OPEN`, `RESOLVED_FIXED`, `RESOLVED_FP`, `RESOLVED_PROJECT_NOT_AFFECTED`, `RESOLVED_TOLERABLE`, `RESOLVED_DUPLICATE`, `TRIAGE_IN_PROGRESS`, `TRIAGED_TP`, `FIX_IN_PROGRESS`, `RESOLVED_AUTOFIXED`, `UNRECOGNIZED`

</div>

<div class="openapi-entity">

### TagDto {#entity-TagDto}

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

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

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

_name_{.json-schema-reset .json-schema-property}
{.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
{
  "name": "example",
  "description": "example"
}
```

{% endcut %}

</div>

<div class="openapi-entity">

### AttachmentDto {#entity-AttachmentDto}

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

_id_{.json-schema-reset .json-schema-property}
{.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
{
  "id": "example"
}
```

{% endcut %}

</div>

</div>

</div>

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