Alert Comments
REST API operation for alert comments
Overview
Use these API operations to interact with alert comments in Panther.
To call the API, see the How to use the Panther REST API instructions—including directions for how to invoke it directly from this documentation page.
Required permissions
For
GEToperations, your API token must have theRead Alertspermission.For
POSToperations, your API token must have theManage Alertspermission.
Operations
The alert ID the comment is associated with
The body of the comment
The format of the comment
OK response.
bad_request: Bad Request response.
not_found: Not Found response.
POST /alert-comments HTTP/1.1
Host: your-api-host
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 54
{
"alertId": "text",
"body": "text",
"format": "PLAIN_TEXT"
}{
"alertId": "text",
"body": null,
"createdAt": "text",
"createdBy": {
"id": "user",
"type": "text"
},
"format": "PLAIN_TEXT",
"id": "text",
"updatedAt": "text",
"updatedBy": {
"id": "user",
"type": "text"
}
}ID of the comment
OK response.
bad_request: Bad Request response.
not_found: Not Found response.
GET /alert-comments/{id} HTTP/1.1
Host: your-api-host
X-API-Key: YOUR_API_KEY
Accept: */*
{
"alertId": "text",
"body": null,
"createdAt": "text",
"createdBy": {
"id": "user",
"type": "text"
},
"format": "PLAIN_TEXT",
"id": "text",
"updatedAt": "text",
"updatedBy": {
"id": "user",
"type": "text"
}
}ID of the comment
The alert ID the comment is associated with
The body of the comment
The format of the comment
OK response.
bad_request: Bad Request response.
not_found: Not Found response.
POST /alert-comments/{id} HTTP/1.1
Host: your-api-host
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 54
{
"alertId": "text",
"body": "text",
"format": "PLAIN_TEXT"
}{
"alertId": "text",
"body": null,
"createdAt": "text",
"createdBy": {
"id": "user",
"type": "text"
},
"format": "PLAIN_TEXT",
"id": "text",
"updatedAt": "text",
"updatedBy": {
"id": "user",
"type": "text"
}
}The alert ID the comments are associated with
the pagination token
the maximum results to return
25OK response.
bad_request: Bad Request response.
GET /alert-comments?alert-id=text HTTP/1.1
Host: your-api-host
X-API-Key: YOUR_API_KEY
Accept: */*
{
"next": "text",
"results": [
{
"alertId": "text",
"body": null,
"createdAt": "text",
"createdBy": {
"id": "user",
"type": "text"
},
"format": "PLAIN_TEXT",
"id": "text",
"updatedAt": "text",
"updatedBy": {
"id": "user",
"type": "text"
}
}
]
}Last updated
Was this helpful?

