Skip to main content
POST
/
v1
/
vulnerabilities
/
{vulnerability_id}
/
comments
Create a vulnerability comment
curl --request POST \
  --url https://api.synack.com/v1/vulnerabilities/{vulnerability_id}/comments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "text": "<string>",
  "type": "<string>"
}
'
{
  "id": 123,
  "text": "<string>",
  "type": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "user": {
    "id": "<string>",
    "name": "<string>",
    "email": "<string>",
    "slug": "<string>",
    "role": "client",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  },
  "attachments": [
    {
      "id": 123,
      "filename": "<string>",
      "content_type": "<string>",
      "file_size": 123,
      "created_at": "2023-11-07T05:31:56Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

vulnerability_id
string
required

Vulnerability ID

Body

application/json
text
string
required

Comment text

type
string

Comment type

Response

Comment created successfully

id
integer
text
string
type
string
created_at
string<date-time>
updated_at
string<date-time>
user
object
attachments
object[]