Help Center/ Workspace/ API Reference/ Workspace APIs/ TenantClientVersion/ Querying Client Version User Statistics
Updated on 2026-11-20 GMT+08:00

Querying Client Version User Statistics

Function

Collects statistics on the number of users of each version based on the tenant ID and client version list. The data comes from the offline statistics table and is updated every hour.

Debugging

You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.

  • If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
  • If you are using identity policy-based authorization, the following identity policy-based permissions are required.

    Action

    Access Level

    Resource Type (*: required)

    Condition Key

    Alias

    Dependencies

    workspace:clientVersion:listStatistics

    List

    -

    -

    -

    -

URI

POST /v2/{project_id}/users/statistics/by-version

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID.

Request Parameters

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

client_version_filters

Yes

Array of ClientVersionOsType objects

List of combinations of client versions and OS types.

Table 3 ClientVersionOsType

Parameter

Mandatory

Type

Description

client_version

Yes

String

Client version.

os_type

Yes

String

(Mandatory) OS type. Linux/Windows/Android/MacOS.

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

statistics

Array of ClientVersionStatistic objects

Version user statistics list.

Table 5 ClientVersionStatistic

Parameter

Type

Description

client_version

String

Client version.

os_type

String

OS type.

user_count

Long

Number of users who use this version.

Status code: 400

Table 6 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

Status code: 401

Table 7 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

Status code: 500

Table 8 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

Example Requests

POST /v2/0e69423d4400f4a82f67c0059a1e4cc8/users/statistics/by-version

{
  "client_version_filters" : [ {
    "client_version" : "25.2.1.0",
    "os_type" : "Windows"
  }, {
    "client_version" : "26.3.0.0",
    "os_type" : "Linux"
  } ]
}

Example Responses

Status code: 200

{
  "statistics" : [ {
    "client_version" : "25.2.1.0",
    "os_type" : "Windows",
    "user_count" : 128
  }, {
    "client_version" : "26.3.0.0",
    "os_type" : "Linux",
    "user_count" : 56
  } ]
}

Status Codes

Status Code

Description

200

OK

400

Bad Request

401

Unauthorized

500

Internal Server Error

Error Codes

See Error Codes.