Update event visibility
Ⓔ Enterprise Only
This API is available exclusively in Countly Enterprise.
Endpoint
/i/data-manager/events/change_visibility
Overview
Set event visibility in the Events map for selected events.
Authentication
Countly API supports three authentication methods:
- API key query parameter:
api_key=YOUR_API_KEY - Auth token query parameter:
auth_token=YOUR_AUTH_TOKEN - Auth token header:
countly-token: YOUR_AUTH_TOKEN
Permissions
Requires data_manager Update permission.
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
app_id | String | Yes | Target app ID. |
set_visibility | String | Yes | Visibility mode. hide sets is_visible=false; any other value sets is_visible=true. |
events | JSON String (Array) | Yes | Array of event keys to update. |
api_key | String | Conditional | Required if auth_token is not provided. |
auth_token | String | Conditional | Required if api_key is not provided. |
events Array Structure
events is a JSON-stringified array of event keys.
Decoded example:
["purchase", "checkout"]
Response
Success Response
"Success"
Alternative success result when at least one selected event is unplanned or has no status:
"EVENT_STATUS_UNPLANNED"
Response Fields
| Field | Type | Description |
|---|---|---|
(root value) | String | Success or EVENT_STATUS_UNPLANNED. |
Error Responses
500
{
"result": "Error"
}
Behavior/Processing
- Loads selected events from
countly_drill.drill_meta. - Updates visibility in
countly.events.map.{event}.is_visible. - Skips visibility updates for events that are
unplannedor missing status. - Returns
EVENT_STATUS_UNPLANNEDwhen such events are present.
Audit & System Logs
- This endpoint does not emit
/systemlogsactions.
Database Collections
| Collection | Used for | Data touched by this endpoint |
|---|---|---|
countly_drill.drill_meta | Status validation source | Reads selected events to detect unplanned or status-missing entries before visibility update. |
countly.events | Event visibility map | Updates map.{event}.is_visible for eligible selected events. |
Examples
Hide selected events
/i/data-manager/events/change_visibility?
app_id=64f5c0d8f4f7ac0012ab3456&
set_visibility=hide&
events=["purchase","checkout"]
Show selected events
/i/data-manager/events/change_visibility?
app_id=64f5c0d8f4f7ac0012ab3456&
set_visibility=show&
events=["purchase","signup"]
Operational Considerations
- If selected events include
unplannedor status-missing entries, the endpoint returnsEVENT_STATUS_UNPLANNEDand skips visibility change for those entries.
Related Endpoints
Last Updated
2026-02-16