Skip to main content

Crashes - Unshare Crash Group

Endpoint

/i/crashes/unshare

Overview

Disables public sharing for a crash group by removing share mapping and setting group visibility to private.

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.
argsJSON String (Object)YesAction payload.
args.crash_idStringYesCrash group ID to unshare.

Response

Success Response

{
"result": "Success"
}

Response Fields

FieldTypeDescription
resultStringSuccess when operation completes.

Error Responses

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

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

Behavior/Processing

  • Computes share record ID as SHA1 hash of app_id + crash_id.
  • Removes matching record from crash_share.
  • Sets is_public=false on crash group document.
  • Emits system log action crash_unshared.

Database Collections

CollectionUsed forData touched by this endpoint
countly.crash_sharePublic share mappingRemoves share record for app/crash pair.
countly.app_crashgroups{appId}Crash group visibilityUpdates is_public=false for the crash group.
countly.systemlogsAudit trailReceives crash_unshared action.

Examples

/i/crashes/unshare?api_key=YOUR_API_KEY&app_id=6991c75b024cb89cdc04efd2&args={"crash_id":"crash_group_1"}

Last Updated

2026-03-07