Update Comment

Request

PATCH

https://appsec.sourcecraft.tech/v1/activities/comment/{activityUuid}

Path parameters

Name

Description

activityUuid

Type: string

UUID of the comment activity to update

Pattern: \S

Example: 01890f3e-7b5c-7cc2-bc6f-3f5d8c9a1e4a

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
{
  "content": "This looks like a false positive"
}

Name

Description

content

Type: string

New comment content (max 1023 characters)

Max length: 1023

Pattern: \S

Example: This looks like a false positive

Responses

200 OK

OK

Body

application/json
{
  "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
}

Name

Description

activityComment

Any of 2 types
  • Type: ActivityComment

    Example
    {
      "uuid": "123e4567-e89b-12d3-a456-426614174000",
      "id": 0,
      "content": "example"
    }
    
  • Type: null

    Example: null

Example
{
  "uuid": "123e4567-e89b-12d3-a456-426614174000",
  "id": 0,
  "content": "example"
}

assignedToUserId

Type: string

Example: example

attachments

Type: AttachmentDto[]

Example
[
  {
    "id": "example"
  }
]

createdAt

Type: integer

createdByUserId

Type: string

Example: example

createdByUserPublicId

Type: string

Example: example

deleted

Type: boolean

dueDate

Type: integer

entityTags

Type: TagDto[]

Example
[
  {
    "name": "example",
    "description": "example"
  }
]

id

Type: integer | null

isDeleted

Type: boolean

newStatus

Type: DefectGroupStatus

Enum: OPEN, RESOLVED_FIXED, RESOLVED_FP, RESOLVED_PROJECT_NOT_AFFECTED, RESOLVED_TOLERABLE, RESOLVED_DUPLICATE, TRIAGE_IN_PROGRESS, TRIAGED_TP, FIX_IN_PROGRESS, RESOLVED_AUTOFIXED, UNRECOGNIZED

previousStatus

Type: DefectGroupStatus

Enum: OPEN, RESOLVED_FIXED, RESOLVED_FP, RESOLVED_PROJECT_NOT_AFFECTED, RESOLVED_TOLERABLE, RESOLVED_DUPLICATE, TRIAGE_IN_PROGRESS, TRIAGED_TP, FIX_IN_PROGRESS, RESOLVED_AUTOFIXED, UNRECOGNIZED

title

Type: string

Example: example

type

Type: ActivityType

Enum: 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

uuid

Any of 2 types
  • Type: UUID

    Pattern: [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: 123e4567-e89b-12d3-a456-426614174000

  • Type: null

    Example: null

Example: 123e4567-e89b-12d3-a456-426614174000

UUID

Type: string<uuid>

Pattern: [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: 123e4567-e89b-12d3-a456-426614174000

ActivityComment

Name

Description

content

Type: string

Example: example

id

Type: integer | null

uuid

Any of 2 types
  • Type: UUID

    Pattern: [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: 123e4567-e89b-12d3-a456-426614174000

  • Type: null

    Example: null

Example: 123e4567-e89b-12d3-a456-426614174000

Example
{
  "uuid": "123e4567-e89b-12d3-a456-426614174000",
  "id": 0,
  "content": "example"
}

ActivityType

Type: string

Enum: 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

DefectGroupStatus

Type: string

Enum: OPEN, RESOLVED_FIXED, RESOLVED_FP, RESOLVED_PROJECT_NOT_AFFECTED, RESOLVED_TOLERABLE, RESOLVED_DUPLICATE, TRIAGE_IN_PROGRESS, TRIAGED_TP, FIX_IN_PROGRESS, RESOLVED_AUTOFIXED, UNRECOGNIZED

TagDto

Name

Description

description

Type: string

Example: example

name

Type: string

Example: example

Example
{
  "name": "example",
  "description": "example"
}

AttachmentDto

Name

Description

id

Type: string

Example: example

Example
{
  "id": "example"
}
Предыдущая
Следующая