Update an incident comment
Edit the content of an existing incident comment.
The ID of the incident the incident comment belongs to.
The ID of the incident comment to update.
Team to use, such as t123. Get the ID via List teams. Required when you can access more than one team.
Bearer $TOKEN
application/json
The comment text in Markdown, up to 100,000 characters. A user mention you send can name the user by u123 or their e-mail. Responses name each mentioned user by u123. Get the user ID via List team members.
Files to attach, as upload IDs. Get one by creating a file upload and sending the file with its upload_command. Up to 10 files of up to 10 MB each per request, counting attachment_urls. On update, the files are added to the comment's existing files. An upload expires after a day. An upload can be attached only once, and only in the organization that created it.
Files to attach, as public https:// URLs to download the files from. Up to 10 files of up to 10 MB each per request, counting attachment_upload_ids. On update, the files are added to the comment's existing files.
Returns the updated incident comment.
{
"data": {
"id": "123456789",
"type": "incident_comment",
"attributes": {
"id": "123456789",
"content": "Updated comment content",
"user_email": "test@example.com",
"attachments": [
{
"id": "124",
"filename": "checkout-errors.log",
"content_type": "text/plain",
"size": 35,
"url": "https://…"
}
],
"user_id": "u123",
"created_at": "2025-06-03T12:10:28.357Z",
"updated_at": "2025-06-03T12:10:28.357Z"
}
}
}
The API token is missing or invalid.
{
"errors": "Invalid Team API token. How to find your Team API token: https://betterstack.com/docs/uptime/api/getting-started-with-uptime-api/#get-an-incidents-api-token"
}
The token is read-only, your role doesn't include Acknowledge, resolve, and escalate on Incidents, or the token can't be used for this API. A team member posted the comment, so only that member can edit or delete it, with an OAuth token. An API token can edit and delete only comments posted with an API token.
{
"errors": "This API token is read-only and cannot be used for write operations."
}
The incident comment doesn't exist, or the token can't access it.
A mention in content isn't u123 or the e-mail of someone in the organization, attachment_upload_ids or attachment_urls name a file that can't be attached, or validation failed.
{
"errors": "Sorry, these attributes have unsupported values",
"allowed_values": {
"content": "Send a user ID such as u123. Get it via List team members, or send their e-mail."
}
}
The files in attachment_upload_ids couldn't be read right now. Try again in a moment.
The ID of the incident comment.
Always incident_comment.
The comment's ID, the same as the top-level id.
The comment text in Markdown, up to 100,000 characters. A user mention you send can name the user by u123 or their e-mail. Responses name each mentioned user by u123. Get the user ID via List team members.
On create, the e-mail of a user in your organization to tag. The comment then starts with a mention of them. In a response, the e-mail of the user who posted the comment. Left out when the comment was posted with an API token.
The comment's files, oldest first.
The attachment's ID.
The file's name.
The file's MIME type.
The file's size in bytes.
A link to the file. For a file attached through the API it expires after 15 minutes, so read the comment again for a fresh one.
The user who posted the comment, as u123. Left out when the comment was posted with an API token.
When the comment was created. In ISO 8601 format, such as 2026-07-01T12:00:00Z.
When the comment was last updated. In ISO 8601 format, such as 2026-07-01T12:00:00Z.
Example cURL