Skip to main content

Crashes - Edit Comment

Endpoint

/i/crashes/edit_comment

Overview

Edits one comment on a crash group. Only the comment author or global admin can modify comment content.

Authentication

Countly API supports three authentication methods:

  1. api_key=YOUR_API_KEY
  2. auth_token=YOUR_AUTH_TOKEN
  3. countly-token: YOUR_AUTH_TOKEN

Permissions

Requires crashes Update permission.

Request Parameters

ParameterTypeRequiredDescription
api_keyStringConditionalRequired if auth_token is not provided.
auth_tokenStringConditionalRequired if api_key is not provided.
app_idStringYesTarget app ID for validation context.
argsJSON String (Object)YesEdit payload.
args.app_idStringYesApp ID used by comment write path.
args.crash_idStringYesCrash group ID.
args.comment_idStringYesComment ID to edit.
args.textStringNoUpdated text.
args.timeNumberNoEdit timestamp in ms.

Response

Success Response

{
"result": "Success"
}

Note: this endpoint returns Success even when the comment is missing or user is not allowed to edit it.

Response Fields

FieldTypeDescription
resultStringSuccess for both applied updates and no-op branches.

Error Responses

  • 400
{
"result": "Please provide args parameter"
}

Standard auth/permission errors from update validation can also be returned.

Behavior/Processing

  • Finds target crash group and comment by comment_id.
  • If user is author or global admin, updates comment in-place and sets edit_time.
  • Emits crash_edited_comment system log action when update is applied.
  • If comment not found / not permitted, returns Success without changes.

Database Collections

CollectionUsed forData touched by this endpoint
countly.app_crashgroups{appId}Crash commentsUpdates matching comments.$ entry when authorized.
countly.systemlogsAudit trailReceives crash_edited_comment action when update occurs.

Examples

/i/crashes/edit_comment?api_key=YOUR_API_KEY&app_id=6991c75b024cb89cdc04efd2&args={"app_id":"6991c75b024cb89cdc04efd2","crash_id":"crash_group_1","comment_id":"comment_1","text":"Fixed in build 24.3.1"}

Last Updated

2026-03-07